Files
RedBear-OS/Cargo.toml
T
Jose Narvaez 3a06dbbc8e Implemented whoami on top of system calls.
Details

- The current implementataion the `whoami` utility relies
on a env var to determine the user. With this change we get
the effective user id of the context and lookup that id on
/etc/passwd.
- Added the Redox `libextra` dependency as it has some goodies
for error handling. This will allow to make this crate upto date
with `coreutils` practices.
- Added a new small `arg_parser` crate that was extracted from
`coreutils` as is now commen between `coreutils` and here.
2017-07-16 17:47:18 +01:00

41 lines
626 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 = { path = "../arg_parser" }
extra = { git = "https://github.com/redox-os/libextra.git" }
liner = "0.1"
rand = "0.3"
redox_syscall = "0.1"
termion = "1.1"