Files
shadow/Cargo.toml
T

93 lines
2.0 KiB
TOML
Raw Normal View History

# spell-checker:ignore uutils
[package]
name = "shadow-rs"
version = "0.0.1"
edition = "2021"
license = "MIT"
description = "Memory-safe Rust reimplementation of Linux shadow-utils"
repository = "https://github.com/shadow-utils-rs/shadow-rs"
readme = "README.md"
keywords = ["coreutils", "shadow", "passwd", "useradd", "linux"]
categories = ["command-line-utilities", "os::unix-apis"]
[workspace]
members = [
"src/shadow-core",
"src/uu/passwd",
"src/uu/pwck",
]
[workspace.package]
version = "0.0.1"
edition = "2021"
license = "MIT"
authors = ["shadow-rs contributors"]
repository = "https://github.com/shadow-utils-rs/shadow-rs"
[workspace.dependencies]
# Internal crates
shadow-core = { path = "src/shadow-core" }
# CLI
clap = { version = "4", features = ["derive", "wrap_help"] }
# uutils integration
uucore = "0.7"
# Error handling
thiserror = "2"
# Unix/Linux
nix = { version = "0.29", features = ["user", "fs", "process", "signal", "term", "resource"] }
libc = "0.2"
2026-03-23 13:42:44 +01:00
# Security
zeroize = "1"
# Testing
proptest = "1"
tempfile = "3"
[dependencies]
# Tool crates (optional, enabled by features)
passwd = { optional = true, version = "0.0.1", package = "uu_passwd", path = "src/uu/passwd" }
pwck = { optional = true, version = "0.0.1", package = "uu_pwck", path = "src/uu/pwck" }
[features]
default = ["passwd", "pwck"]
# Individual tools
feat_passwd = ["passwd"]
feat_pwck = ["pwck"]
# Grouped features (add tools as implemented)
feat_common = ["feat_passwd", "feat_pwck"]
[[bin]]
name = "shadow-rs"
path = "src/bin/shadow-rs.rs"
[[test]]
name = "test_passwd"
path = "tests/by-util/test_passwd.rs"
[dev-dependencies]
shadow-core = { path = "src/shadow-core", features = ["shadow"] }
nix = { workspace = true }
tempfile = { workspace = true }
[profile.release]
lto = true
strip = true
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
[workspace.lints.clippy]
all = { level = "deny" }
pedantic = { level = "warn" }
[lints]
workspace = true