| Crates.io | standard_paths |
| lib.rs | standard_paths |
| version | 2.1.0 |
| created_at | 2017-12-08 06:55:41.193854+00 |
| updated_at | 2023-08-03 07:59:32.495299+00 |
| description | A port of QStandardPaths class which provides methods for accessing standard paths on the local filesystem (config, cache, user directories and etc.). |
| homepage | |
| repository | https://github.com/mentaljam/standard_paths |
| max_upload_size | |
| id | 42132 |
| size | 57,655 |
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.
macOS is currently unsupported. If you want to help with macOS feel free to contribute!
[dependencies]
standard_paths = "^2.0"
use standard_paths::{LocationType, StandardPaths};
fn main() {
let sp = StandardPaths::new("app", "org");
println!("{:?}", sp.writable_location(LocationType::AppLocalDataLocation));
}