figgy
A small Rust library for managing config files which supports heirarchical directories, defaults, and writing initial files
Example:
~/.config/myapp/myapp.config.json OR ~/.myapp/myapp.config.json
Your Rust program:
use ;
let config = new
.directory
.directory
.read;
Default Configs
If you want a default configuration, you can set one with .default().
If you want to automatically write a config file if none is detected, use .create_file_if_not_found()
let config = new))
.directory
.directory
.create_file_if_not_found
.default
.read;