ronf 0.4.2

Configuration system with saving
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ronf::{Config, File, FileFormat};

fn main() {
    let config = Config::builder()
        .add_file(File::new_str(
            "test_file",
            FileFormat::Ini,
            r#"[section]
key = "value"
"#,
        ))
        .build()
        .unwrap();
    println!(
        "\"key\": {}",
        config.get("section").unwrap().get("key").unwrap()
    );
}