blob: cd3286f88456df63c99f6b9bd7968e1a13a45e51 (
plain)
1
2
3
4
5
6
7
8
9
10
|
extern crate config;
fn main() {
// Read configuration from "Settings.yaml"
config::merge(config::File::new("Settings", config::FileFormat::Yaml)).unwrap();
println!("debug = {:?}", config::get("debug"));
println!("pi = {:?}", config::get("pi"));
println!("weight = {:?}", config::get("weight"));
}
|