Expand description
§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.
§Usage
use standard_paths::{LocationType, StandardPaths};
let sp = StandardPaths::new("app", "org");
println!("{:?}", sp.writable_location(LocationType::AppLocalDataLocation));
Macros§
- default_
paths - Constructs a new
StandardPaths
with the application name derived from theCARGO_PKG_NAME
variable.
Structs§
- Standard
Paths - Stores application and organization names and provides all the crate methods.
Enums§
- Locate
Option - Enumerates the locate option type.
- Location
Type - Enumerates the standard location type.