| 1 |
[package] |
| 2 |
name = "sudo-rs" |
| 3 |
description = "A memory safe implementation of sudo and su." |
| 4 |
version = "0.2.14" |
| 5 |
license = "Apache-2.0 OR MIT" |
| 6 |
edition = "2024" |
| 7 |
repository = "https://github.com/trifectatechfoundation/sudo-rs" |
| 8 |
homepage = "https://github.com/trifectatechfoundation/sudo-rs" |
| 9 |
publish = true |
| 10 |
categories = ["command-line-interface"] |
| 11 |
exclude = ["audit", "proofs", "util"] |
| 12 |
|
| 13 |
rust-version = "1.85" |
| 14 |
|
| 15 |
default-run = "sudo" |
| 16 |
|
| 17 |
[dependencies] |
| 18 |
libc = "0.2.176" |
| 19 |
glob = "0.3.0" |
| 20 |
|
| 21 |
[features] |
| 22 |
default = [] |
| 23 |
|
| 24 |
# when enabled, use "sudo-i" PAM service name for sudo -i instead of "sudo" |
| 25 |
# ONLY ENABLE THIS FEATURE if you know that original sudo uses "sudo-i" |
| 26 |
# on the system you are building sudo for (e.g. Debian, Fedora, but not Arch) |
| 27 |
pam-login = [] |
| 28 |
|
| 29 |
# this enables enforcing of AppArmor profiles |
| 30 |
apparmor = [] |
| 31 |
|
| 32 |
# whether to enable 'gettext' support for giving localized user-facing messages |
| 33 |
gettext = [] |
| 34 |
|
| 35 |
# whether to enable the unstable '@socket' feature for fetching a remote sudoers |
| 36 |
unstable-remote-sudoers = [] |
| 37 |
|
| 38 |
# enable detailed logging (use for development only) to /tmp |
| 39 |
# this will compromise the security of sudo-rs somewhat |
| 40 |
dev = [] |
| 41 |
|
| 42 |
# this feature should never be enabled, but it is here to prevent accidental |
| 43 |
# compilation using "cargo --all-features", which should not be used on sudo-rs |
| 44 |
do-not-use-all-features = [] |
| 45 |
|
| 46 |
# sudoedit support is now always enabled. this feature only exists for back compat reasons |
| 47 |
sudoedit = [] |
| 48 |
|
| 49 |
[profile.release] |
| 50 |
strip = "symbols" |
| 51 |
lto = true |
| 52 |
opt-level = "s" |
| 53 |
|
| 54 |
[lints.rust] |
| 55 |
unsafe_op_in_unsafe_fn = { level = "deny" } |
| 56 |
|
| 57 |
[lints.clippy] |
| 58 |
undocumented_unsafe_blocks = "warn" |