cachedir - Build Status Build status

Documentation

Status: finished


A Rust library that helps with cache directories creation in a system-agnostic way.

Note: even though the crate is at version 0.1, it should be stable and its API is not expected to change soon.

Dual-licensed under MIT or the UNLICENSE.

Usage

Add this to your Cargo.toml: toml [dependencies] cachedir = "0.1"

Example

```rust extern crate cachedir;

use cachedir::CacheDirConfig;

fn main() { let cachedir = CacheDirConfig::new("CacheName") .getcache_dir() .unwrap();

println!("{}", cache_dir.display());

} ```

This creates CacheName into the user's cache directory.
For more information on the types of caches and code examples, please check the documentation.