Crates.io | xdg-basedir |
lib.rs | xdg-basedir |
version | 1.0.0 |
source | src |
created_at | 2015-05-25 20:15:42.073497 |
updated_at | 2016-02-28 16:52:37.167727 |
description | Library to help with the XDG basedir spec |
homepage | |
repository | https://github.com/kiran-kp/xdg-basedir |
max_upload_size | |
id | 2206 |
size | 28,939 |
xdg-basedir is a utility library to make conforming to the XDG basedir specification easier.
#Example
#![cfg(unix)]
extern crate xdg_basedir;
#![cfg(unix)]
use xdg_basedir::*;
use std::path::PathBuf;
...
let data_home: PathBuf = try!(get_data_home());
...
Unstable features:
The default build of xdg-basedir does not use any unstable libstd features. To enable them, you'll need to use the nightly build of rustc and build xdg-basedir with the 'unstable' feature toggle.
[dependencies.xdg-basedir]
version = "0.2.2"
features = ["unstable"]
Alternate implementation and some initial source borrowed from rust-xdg.
The APIs provided by rust-xdg
and xdg-basedir
are different.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.