xdg-basedir

Build Status

Documentation

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

Example

```rust

![cfg(unix)]

extern crate xdg_basedir;

![cfg(unix)]

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

Unstable features: - Test runtime directory: A function to check if a directory satisfies the XDG spec's requirements of a runtime directory.

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.

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

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