Skip to content

Polkaverse/fetch_configuration

Repository files navigation

fetch_configuration

Build Status Latest version Stability stable

A Rust Crate/Library to fetch the configurations of code from config file and return a key-value pair for all the configurations in the form of Hashmap.

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages