Registry / utility / home
library0.5.12rscratesunverified

Shared definitions of home directories.

# Cargo.toml [dependencies] home = "0.5.12"
INSTALL
IMPORT
SIG · HOME
H
home
utilityrustv0.5.12
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.

home_dir
use home::home_dir;

Gets the user's home directory.

use home::home_dir; fn main() { match home_dir() { Some(path) => println!("Home directory: {}", path.display()), None => eprintln!("Unable to determine home directory"), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.12latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
home — cargo add home · libregistry