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