Registry / utility / uzers
library0.12.2rscratesunverified

Continuation of the `users` crate for accessing Unix user and group information.

# Cargo.toml [dependencies] uzers = "0.12.2"
INSTALL
IMPORT
SIG · UZERS
U
uzers
utilityrustv0.12.2
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 uzers::User;

Retrieve the root user by UID.

use uzers::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).
fix
Use conditional compilation or alternative for Windows.
affects: >=0.12.0
Upgrade
Version history
0.12.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
uzers — cargo add uzers · libregistry