Crates.io | ezconf |
lib.rs | ezconf |
version | 0.3.0 |
source | src |
created_at | 2018-05-09 17:15:08.758147 |
updated_at | 2018-10-22 20:45:42.552404 |
description | A library for easily making your program configurable |
homepage | https://github.com/Rahix/ezconf |
repository | https://github.com/Rahix/ezconf |
max_upload_size | |
id | 64572 |
size | 16,505 |
A library to add configuration options to your project with as little
boilerplate as possible. Uses toml
as the configuration format.
extern crate ezconf;
static CONFIG: ezconf::Config = ezconf::INIT;
fn main() {
CONFIG
.init([ezconf::Source::File("tests/test.toml")].iter())
.unwrap();
let v = CONFIG.get_or::<String>("string.a", "Hello String".into());
println!("Value: {:?}", v);
}
ezconf is licensed under either of
at your option.