2 unstable releases
0.2.0 | Nov 27, 2019 |
---|---|
0.1.0 | Nov 27, 2019 |
#117 in #fetch
5KB
fetch_configuration
A Library to fetch the configurations form the config file.
Use
Add dependency in Cargo.toml
[dependencies]
fetch_configuration = "0.2.0"
Example to use fetch configuration crate
extern crate fetch_configuration;
use fetch_configuration::configuration;
fn main() {
let config = configuration("config.json").unwrap();
let time = config.get(&"TIMER".to_string()) .expect("Key not present");
print!("{}", time);
}
Contributing
If you want to contribute to this crate please take a look to Click Me.
Dependencies
~145KB