# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.76.0" name = "rootasrole" version = "3.0.3" authors = ["Eddie Billoir "] build = "build.rs" exclude = [ "sudoers-reader/*", "book/*", ] autobins = false autoexamples = false autotests = false autobenches = false default-run = "sr" description = "An alternative to sudo that uses Linux capabilities and Role based access control." homepage = "https://lechatp.github.io/RootAsRole/" readme = "README.md" keywords = [ "sudo", "capabilities", "rbac", "linux", "security", ] categories = [ "command-line-utilities", "os::linux-apis", "config", ] license = "GPL-3.0-or-later" repository = "https://github.com/LeChatP/RootAsRole" [package.metadata.deb] assets = [ [ "target/release/sr", "usr/bin/sr", "0555", ], [ "target/release/chsr", "usr/bin/chsr", "0555", ], [ "target/man/sr.8.gz", "usr/share/man/man8/sr.8.gz", "0644", ], [ "target/man/chsr.8.gz", "usr/share/man/man8/chsr.8.gz", "0644", ], [ "target/man/fr/sr.8.gz", "usr/share/man/fr/man8/sr.8.gz", "0644", ], [ "target/man/fr/chsr.8.gz", "usr/share/man/fr/man8/chsr.8.gz", "0644", ], ] changelog = "target/debian/changelog" conf-files = [ "/etc/pam.d/sr", "/etc/security/rootasrole.json", ] depends = "libpam0g, libpam-modules, libpcre2-8-0" extended-description = "RootAsRole is a project to allow Linux/Unix administrators to delegate their administrative tasks access rights to multiple co-administrators through RBAC model and Linux Capabilities features." license-file = "LICENSE" maintainer = "Eddie Billoir " maintainer-scripts = "target/release/" preserve-symlinks = true priority = "optional" section = "admin" [package.metadata.generate-rpm] post_install_script = "resources/rh/postinst.sh" post_install_script_flags = 5 pre_uninstall_script = "resources/rh/prerm.sh" pre_uninstall_script_flags = 5 [[package.metadata.generate-rpm.assets]] caps = "=p" dest = "/usr/bin/sr" group = "root" mode = "0555" source = "target/release/sr" user = "root" [[package.metadata.generate-rpm.assets]] dest = "/usr/bin/chsr" group = "root" mode = "0555" source = "target/release/chsr" user = "root" [[package.metadata.generate-rpm.assets]] config = true dest = "/etc/pam.d/sr" group = "root" mode = "0644" source = "resources/rh/rh_sr_pam.conf" user = "root" [[package.metadata.generate-rpm.assets]] config = true dest = "/etc/security/rootasrole.json" group = "root" mode = "0644" source = "resources/rootasrole.json" user = "root" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/man/man8/sr.8.gz" doc = true group = "root" mode = "0644" source = "target/man/sr.8.gz" user = "root" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/man/man8/chsr.8.gz" doc = true group = "root" mode = "0644" source = "target/man/chsr.8.gz" user = "root" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/man/fr/man8/sr.8.gz" doc = true group = "root" mode = "0644" source = "target/man/fr/sr.8.gz" user = "root" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/man/fr/man8/chsr.8.gz" doc = true group = "root" mode = "0644" source = "target/man/fr/chsr.8.gz" user = "root" [package.metadata.generate-rpm.requires] pam = "*" pcre2 = "*" [profile.release] opt-level = "s" lto = true codegen-units = 1 strip = "symbols" [[bin]] name = "chsr" path = "src/chsr/main.rs" [[bin]] name = "sr" path = "src/sr/main.rs" required-features = ["finder"] [dependencies.bitflags] version = "2.6" [dependencies.capctl] version = "0.2" [dependencies.chrono] version = "0.4" [dependencies.ciborium] version = "0.2" [dependencies.const_format] version = "0.2" [dependencies.derivative] version = "2.2" [dependencies.glob] version = "0.3" [dependencies.hex] version = "0.4" [dependencies.libc] version = "0.2" [dependencies.linked_hash_set] version = "0.1" [dependencies.log] version = "0.4" [dependencies.nix] version = "0.29" features = [ "user", "process", "signal", "fs", ] [dependencies.once_cell] version = "1.20" [dependencies.pam-client2] version = "0.5" [dependencies.pcre2] version = "0.2" optional = true [dependencies.pest] version = "2.7" [dependencies.pest_derive] version = "2.7" [dependencies.pty-process] version = "0.4" [dependencies.rar-common] version = "3.0.3" package = "rootasrole-core" [dependencies.semver] version = "1.0" features = ["serde"] [dependencies.serde] version = "1.0" features = [ "rc", "derive", ] [dependencies.serde_json] version = "1.0" [dependencies.sha2] version = "0.10" [dependencies.shell-words] version = "1.1" [dependencies.strum] version = "0.26" features = ["derive"] [dev-dependencies.env_logger] version = "0.11" [dev-dependencies.log] version = "0.4" [dev-dependencies.test-log] version = "0.2" [build-dependencies.serde_json] version = "1.0" [build-dependencies.toml] version = "0.8" [features] default = ["finder"] finder = [ "dep:pcre2", "rar-common/pcre2", "rar-common/finder", ] [badges.maintainance] badge = "https://img.shields.io/badge/maintenance-actively%20maintained-brightgreen.svg" status = "actively-maintained" [lints.rust.unexpected_cfgs] level = "allow" priority = 0 check-cfg = ["cfg(tarpaulin_include)"]