| Crates.io | xdg-rs |
| lib.rs | xdg-rs |
| version | 0.1.4 |
| created_at | 2014-12-03 04:46:19.052495+00 |
| updated_at | 2015-12-11 23:59:34.806356+00 |
| description | [This crate is no longer maintained. Please use xdg-basedir instead] Library to help with the XDG basedir spec |
| homepage | |
| repository | https://github.com/skullzzz/xdg-rs |
| max_upload_size | |
| id | 446 |
| size | 17,641 |
This library has been moved to xdg-basedir.
xdg-rs is a utility library to make conforming to the XDG basedir specification easier.
#Example
#![cfg(unix)]
extern crate xdg;
#![cfg(unix)]
use xdg;
use std::path::PathBuf;
...
let data_home: PathBuf = try!(xdg::get_data_home());
...
Unstable features:
The default build of xdg-rs does not use any unstable libstd features. To enable them, you'll need to use the nightly build of rustc and build xdg-rs with the 'unstable' feature toggle.
[dependencies.xdg-rs]
version = "0.1.3"
features = ["unstable"]
Alternate implementation and some initial source borrowed from rust-xdg.
The APIs provided by rust-xdg and xdg-rs are different.