use config::ConfigError; use lfcm::config; config! { param name = Config; section top { var rand: u64 = 42; var funny: i64 = 24; section database { var seed: u64 = 42; } section test { var reps: u64 = 10; } } } #[test] fn test_parser() { let config = match lfcm_load_config(vec![ "tests/fixtures/test1.yaml", ]) { Ok(config) => config, Err(e) => return, }; println!("{:?}", config); }