0ed14bec6d
Details - Updated dependencies with `redox_users`. - Migrated all user/group dependent functionality to calls to `redox_users`. - Added top level documentation to the crate. - Added a `spawn_shell` function to reuse a bit of code. - `login`: Handled the case of an invalid login with "Login incorrect" (as in BSD). - `passwd`: Refactored a bit and used `eprintln!` where possible. - `su`: Refactored a bit and used `eprintln!` where possible. - `sudo`: Refactored a bit to simplify logic also used `eprintln!` where possible. - `whoami`: Refactored a bit and used `eprintln!/println!` where possible. - Also added myself on the AUTHORS section :).
43 lines
742 B
TOML
43 lines
742 B
TOML
[package]
|
|
name = "userutils"
|
|
version = "0.1.0"
|
|
|
|
[[bin]]
|
|
name = "getty"
|
|
path = "src/bin/getty.rs"
|
|
|
|
[[bin]]
|
|
name = "id"
|
|
path = "src/bin/id.rs"
|
|
|
|
[[bin]]
|
|
name = "login"
|
|
path = "src/bin/login.rs"
|
|
|
|
[[bin]]
|
|
name = "passwd"
|
|
path = "src/bin/passwd.rs"
|
|
|
|
[[bin]]
|
|
name = "su"
|
|
path = "src/bin/su.rs"
|
|
|
|
[[bin]]
|
|
name = "sudo"
|
|
path = "src/bin/sudo.rs"
|
|
|
|
[[bin]]
|
|
name = "whoami"
|
|
path = "src/bin/whoami.rs"
|
|
|
|
[dependencies]
|
|
argon2rs = { version = "0.2", default-features = false }
|
|
arg_parser = { git = "https://github.com/redox-os/arg-parser.git" }
|
|
extra = { git = "https://github.com/redox-os/libextra.git" }
|
|
liner = "0.1"
|
|
rand = "0.3"
|
|
redox_syscall = "0.1"
|
|
redox_termios = "0.1"
|
|
redox_users = { git = "https://github.com/redox-os/users.git" }
|
|
termion = "1.5.1"
|