Skip to content

ejsch03/simple-home-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-home-dir

Crate

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();
}

About

Simple and tiny library for getting a user's home directory.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages