adhoc-figment

Crates.ioadhoc-figment
lib.rsadhoc-figment
version0.1.1
sourcesrc
created_at2021-09-07 17:29:16.498357
updated_at2021-09-10 18:25:34.840146
descriptionAn ad hoc provider for figment
homepage
repositoryhttps://github.com/Person-93/adhoc-figment
max_upload_size
id448150
size8,861
person93 (Person-93)

documentation

README

Ad Hoc Figment

An ad hoc provider for the figment configuration library.

use figment::Figment;
use adhoc_figment::AdHocProvider;

fn main() {
    let ad_hoc = AdHocProvider::new("key", "value");
    let figment = Figment::from(ad_hoc);
    let value: String = figment.extract_inner("key").unwrap();
    assert_eq!(value, "value");
}
Commit count: 15

cargo fmt