Crate standard_paths
source ·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
- Constructs a new
StandardPaths
with the application name derived from theCARGO_PKG_NAME
variable.
Structs
- Stores application and organization names and provides all the crate methods.
Enums
- Enumerates the locate option type.
- Enumerates the standard location type.