config-better 0.1.0

Configure your application in a friendlier and more consistent way!
Documentation

config-better-rs

Make use of directories for configuration / data / caching better and more user-friendly!

This module provides support for the XDG Base Directory specification, and OS-friendly fallbacks for Windows, Mac OS, and Linux if not otherwise specified.

This is a port of the Python version of the same name.

Usage

use config_better::Config;

fn main() {
    let dirs = Config::new("some-app");
    println!("{:?}", dirs);

    // View paths
    println!("{:?}", dirs.cache());
    println!("{:?}", dirs.config());
    println!("{:?}", dirs.data());

    // Create/delete directories
    dirs.make_dirs();
    dirs.rm_dirs();
}

For further details, refer to installation instructions on crates.io and docs on docs.rs.