xdg-rs 0.1.4

[This crate is no longer maintained. Please use xdg-basedir instead] Library to help with the XDG basedir spec
docs.rs failed to build xdg-rs-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: xdg-rs-0.1.3

This library has been moved to xdg-basedir.

xdg-rs

Build Status

Documentation

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:

  • 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-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.