project-dirs 0.1.0

A library for finding project directories
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use project_dirs::{Directory, Project};

pub fn main() {
    // Yep. That's all you need in most cases
    let log_dir = Project::new("org", "My Super Company", "My app")
        .project_dirs()
        .user
        .get(&Directory::Log)
        .unwrap()
        .clone();

    println!("log dir: {:#?}", log_dir);
}