xdg-rs

Build Status

Documentation

xdg-rs is a utility library to make conforming to the XDG basedir specification easier.

Example

```rust

![cfg(unix)]

extern crate xdg;

![cfg(unix)]

use xdg; use std::path::PathBuf; ... let datahome: PathBuf = try!(xdg::getdata_home()); ... ```

The default build of xdg-rs does not use any unstable libstd features. To use these functions, you'll need to use the nightly build of rustc and build xdg-rs with the 'unstable' feature toggle.

toml [dependencies.xdg-rs] version = "0.1.2" features = ["unstable"]

Current unstable features:

Alternate implementation and some initial source borrowed from rust-xdg. The APIs provided by rust-xdg and xdg-rs are different.