Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.71 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.71 KB

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 Linux and Windows

macOS support

macOS is currently unsupported. If you want to help with macOS feel free to contribute!

Usage

Cargo.toml

[dependencies]
standard_paths = "^2.0"

main.rs

use standard_paths::{LocationType, StandardPaths};

fn main() {
    let sp = StandardPaths::new("app", "org");
    println!("{:?}", sp.writable_location(LocationType::AppLocalDataLocation));
}