Skip to content
/ ezconf Public

Easy and boilerplate free toml configuration for rust programs

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Rahix/ezconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Easy and boilerplate free toml configuration for rust programs

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages