1 unstable release
Uses old Rust 2015
0.0.0 | Apr 25, 2016 |
---|
#32 in #temp-dir
10KB
166 lines
s_app_dir
Usage
Cargo.toml:
[package]
...
[dependencies]
s_app_dir = "*" # or semantic versioning
main.rc:
extern crate s_app_dir;
use s_app_dir::{AppDir, XdgDir};
fn main() {
let app_dir = AppDir::new("foo-bar-app");
println!("{:?}", app_dir.xdg_dir(XdgDir::Config));
}
lib.rs
:
s_app_dir
Usage
Cargo.toml:
[package]
...
[dependencies]
s_app_dir = "*" # or semantic versioning
main.rc:
extern crate s_app_dir;
use s_app_dir::{AppDir, XdgDir};
fn main() {
let app_dir = AppDir::new("foo-bar-app");
println!("{:?}", app_dir.xdg_dir(XdgDir::Config));
}