#home #directory #tilde

simple-home-dir

A simple and miniscule library allowing one to easily access the user's home directory

3 releases

0.1.2 Apr 1, 2023
0.1.1 Mar 31, 2023
0.1.0 Mar 31, 2023

#2 in #home

Download history 59/week @ 2023-03-26 27/week @ 2023-04-02 100/week @ 2023-04-09 65/week @ 2023-04-16 1113/week @ 2023-04-23 935/week @ 2023-04-30 996/week @ 2023-05-07 1066/week @ 2023-05-14 1052/week @ 2023-05-21 1392/week @ 2023-05-28

4,596 downloads per month
Used in 4 crates (3 directly)

MIT license

4KB
51 lines

simple-home-dir

An extremely small library purposed to retrieve the user's home directory.

How to Use:

use simple_home_dir::*;

fn main() {
    let path = home_dir().unwrap();
    println!("{}", path.display())
}

And that's it!

Compatibility

This works on most operating systems.

Credit

The majority of the Windows portion of this has been noted from the windows-sys and directories crates.

Dependencies

~0–6MB
~94K SLoC