2026-03-23 11:57:10 +01:00
|
|
|
# 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",
|
2026-03-24 09:44:39 +01:00
|
|
|
"src/uu/pwck",
|
2026-03-23 11:57:10 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[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"] }
|
|
|
|
|
|
2026-03-23 13:56:51 +01:00
|
|
|
# uutils integration
|
|
|
|
|
uucore = "0.7"
|
|
|
|
|
|
2026-03-23 11:57:10 +01:00
|
|
|
# Error handling
|
|
|
|
|
thiserror = "2"
|
|
|
|
|
|
|
|
|
|
# Unix/Linux
|
2026-03-23 16:45:20 +01:00
|
|
|
nix = { version = "0.29", features = ["user", "fs", "process", "signal", "term", "resource"] }
|
2026-03-23 11:57:10 +01:00
|
|
|
libc = "0.2"
|
|
|
|
|
|
2026-03-23 13:42:44 +01:00
|
|
|
# Security
|
|
|
|
|
zeroize = "1"
|
|
|
|
|
|
2026-03-23 11:57:10 +01:00
|
|
|
# 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" }
|
2026-03-24 09:44:39 +01:00
|
|
|
pwck = { optional = true, version = "0.0.1", package = "uu_pwck", path = "src/uu/pwck" }
|
2026-03-23 11:57:10 +01:00
|
|
|
|
|
|
|
|
[features]
|
2026-03-24 09:44:39 +01:00
|
|
|
default = ["passwd", "pwck"]
|
2026-03-23 11:57:10 +01:00
|
|
|
|
|
|
|
|
# Individual tools
|
|
|
|
|
feat_passwd = ["passwd"]
|
2026-03-24 09:44:39 +01:00
|
|
|
feat_pwck = ["pwck"]
|
2026-03-23 11:57:10 +01:00
|
|
|
|
|
|
|
|
# Grouped features (add tools as implemented)
|
2026-03-24 09:44:39 +01:00
|
|
|
feat_common = ["feat_passwd", "feat_pwck"]
|
2026-03-23 11:57:10 +01:00
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "shadow-rs"
|
|
|
|
|
path = "src/bin/shadow-rs.rs"
|
|
|
|
|
|
2026-03-23 14:11:19 +01:00
|
|
|
[[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 }
|
|
|
|
|
|
2026-03-23 11:57:10 +01:00
|
|
|
[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
|