Registry / utility / users
library0.11.0rscratesunverified

Library for accessing Unix users and groups

# Cargo.toml [dependencies] users = "0.11.0"
INSTALL
IMPORT
SIG · USERS
U
users
utilityrustv0.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

User
✓ use users::User;

Get the root user by UID

use users::User; fn main() { if let Some(user) = User::from_uid(0) { println!("Root user: {}", user.name()); } }
Debug
Known issues
gotchaOnly works on Unix-like systems (Linux, macOS, BSD).
fix
Use conditional compilation or a cross-platform alternative for Windows.
affects: >=0.1.0
Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
users — cargo add users · libregistry