config-rs v0.6.0 Release Notes

Release Date: 2017-06-23 // almost 7 years ago
    • Implement Source for Vec<T: Source> and Vec<Box<Source>>

      Config::new()
          .merge(vec![
              File::with_name("config/default"),
              File::with_name(&format!("config/{}", run_mode)),
          ])
      
    • Implement From<&Path> and From<PathBuf> for File

    • Remove namespace option for File

    • Add builder pattern to condense configuration

      Config::new()
          .merge(File::with_name("Settings"))
          .merge(Environment::with_prefix("APP"))
          .unwrap()
      
      • Parsing errors even for non required files – [@Anthony25] ( #33 )