xdg-rs is a utility library to make conforming to the XDG basedir specification easier.
```rust
extern crate xdg;
use xdg; use std::path::PathBuf; ... let datahome: PathBuf = try!(xdg::getdata_home()); ... ```
Alternate implementation and some initial source borrowed from rust-xdg.
The APIs provided by rust-xdg
and xdg-rs
are different.