config-rs v0.12.0 Release Notes

Release Date: 2022-02-10 // 10 months ago
  • ๐Ÿ‘ Format support changes in this version

    • HJSON support was removed #230
    • JSON5 format support #206
    • RON format support #202

    Other noteworthy changes

    • A new ConfigBuilder interface for building configuration objects #196
    • Asynchronous sources #207
    • Custom ENV separators are now supported #185
    • Loads of dependency updates and bugfixes of course
    • Preserved map order #217
    • Support for parsing numbers from the environment #137
    • Support for unsigned integers #178
    • Format trait for (custom) file formats #219

    ๐Ÿ—„ Deprecated

    • Environment::new() - see #235
    • Large parts of the Config interface - see #196
      • Config::merge()
      • Config::with_merged()
      • Config::refresh()
      • Config::set_default()
      • Config::set()
      • Config::set_once()
      • Config::deserialize()

Previous changes from v0.11.0

    • The Config type got a builder-pattern with_merged() method #166.
    • A Config::set_once() function was added, to set an value that can be overwritten by Config::mergeing another configuration #172
    • serde_hjson is, if enabled, pulled in without default features. This is due to a bug in serde_hjson, see #169 for more information.
    • Testing is done on github actions #175