21 releases
Uses new Rust 2024
0.5.1 | May 20, 2025 |
---|---|
0.5.0 | Feb 27, 2025 |
0.4.7 | Feb 10, 2025 |
0.4.5 | Dec 2, 2024 |
0.1.1 |
|
#1057 in Filesystem
1,144 downloads per month
Used in 20 crates
(15 directly)
3KB
simple-home-dir
Deprecated: This crate is no longer necessary as Rust now provides an official home_dir() method. Use std::env::home_dir()
instead.
Usage
Simply use the standard library's built-in home_dir method.
pub use std::env::home_dir;
fn main() {
// Unix => /home/jdoe
// Windows => C:\Users\jdoe
let path = home_dir().unwrap();
}