1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use ronf::{Config, File, FileFormat}; fn main() { let config = Config::builder() .add_file(File::new_str( "test_file", FileFormat::Ron, r#"( key: "value", )"#, )) .build() .unwrap(); println!("\"key\": {}", config.get("key").unwrap()); }