simple-home-dir

Crate

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

How to Use:

```rust use simplehomedir::*;

fn main() { // "/home/" let path = homedir().unwrap(); } And that's it! rust use simplehomedir::expandtilde;

fn main() { // "/home//.local" let expanded = simplehomedir::expandtilde("~/.local").unwrap(); } `` There's also theexpandtilde` feature (disabled by default) which can expand upon the tilde from a given path.

Credit

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