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
use ronf::{Config, File, FileFormat};

fn main() {
    unsafe {
        std::env::set_var("KEY", "overwrite");
    }

    let config = Config::builder()
        .add_file(File::new_str(
            "test_file",
            FileFormat::Json,
            "{\"key\": \"value\"}",
        ))
        .build()
        .unwrap();
    println!("\"key\": {}", config.get("key").unwrap());
}