Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
rust-xdg is a library that makes it easy to follow the standards for directories.

## Usage

```rust
use xdg::XdgDirs;
use std::fs::File;

let dirs = XdgDirs::new();
let data_dir = dirs.want_write_data("AppName");

let mut f = File::create(data_dir.join("data.txt"));
f.write(b"Some data.\n");
```

## License

rust-xdg is primarily distributed under the terms of both the MIT license
Expand Down