#directory #temp-dir #path #temporary #name

s_app_dir

A library for getting configuration directory and temporary directory path with app name

1 unstable release

Uses old Rust 2015

0.0.0 Apr 25, 2016

#32 in #temp-dir

MIT license

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));
}

No runtime deps