fetch_configuration 0.2.0

Library to fetch configuration from config file.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 10.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.09 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Polkaverse/fetch_configuration
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Polkaverse

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.