ezconf

Crates.ioezconf
lib.rsezconf
version0.3.0
sourcesrc
created_at2018-05-09 17:15:08.758147
updated_at2018-10-22 20:45:42.552404
descriptionA library for easily making your program configurable
homepagehttps://github.com/Rahix/ezconf
repositoryhttps://github.com/Rahix/ezconf
max_upload_size
id64572
size16,505
Rahix (Rahix)

documentation

https://rahix.github.io/ezconf/

README

ezconf crates.io page Build Status docs.rs

A library to add configuration options to your project with as little boilerplate as possible. Uses toml as the configuration format.

Example

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);
}

License

ezconf is licensed under either of

at your option.

Commit count: 22

cargo fmt