standard_paths 0.4.3

A port of QStandardPaths class which provides methods for accessing standard paths on the local filesystem (config, cache, user directories and etc.).
Documentation

Standard Paths

A Rust library providing methods for accessing standard paths on the local filesystem (config, cache, user directories and etc.).

It's a port of QStandardPaths class of the Qt framework.

Crates Version Crates Downloads Documentation

Currently implemented for Unix and Windows

Usage

Cargo.toml

[dependencies]
standard_paths = "^0.4"

main.rs

extern crate standard_paths;

use standard_paths::*;
use standard_paths::LocationType::*;

fn main() {
    let sp = StandardPaths::new_with_names("app", "org");
    println!("App data location: {:?}", sp.writable_location(AppLocalDataLocation));
}