diff options
-rw-r--r-- | CHANGELOG.md | 19 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/builder.rs | 2 | ||||
-rw-r--r-- | src/file/format/mod.rs | 10 |
5 files changed, 32 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d4bfc8..7d30ca0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +## 0.13.0 - 2022-04-03 + + - Prefix-Seperator support was added [#292] + - Environment lists can now be parsed [#255] + - Setting an overwrite from an Option was added [#303] + - Option to keep the prefix from an environment variable was added [#298] + - Some small doc/CI fixes [#307], [#309] + - MSRV was updated to 1.56.0 [#304] + - Dependencies were updated [#289], [#301] + +[#292]: https://github.com/mehcode/config-rs/pull/292 +[#255]: https://github.com/mehcode/config-rs/pull/255 +[#303]: https://github.com/mehcode/config-rs/pull/303 +[#298]: https://github.com/mehcode/config-rs/pull/298 +[#307]: https://github.com/mehcode/config-rs/pull/307 +[#309]: https://github.com/mehcode/config-rs/pull/309 +[#304]: https://github.com/mehcode/config-rs/pull/304 +[#289]: https://github.com/mehcode/config-rs/pull/289 +[#301]: https://github.com/mehcode/config-rs/pull/301 ## 0.12.0 - 2022-02-10 @@ -1,6 +1,6 @@ [package] name = "config" -version = "0.12.0" +version = "0.13.0" description = "Layered configuration system for Rust applications." homepage = "https://github.com/mehcode/config-rs" repository = "https://github.com/mehcode/config-rs" @@ -30,7 +30,7 @@ values back to the configuration file(s)! ```toml [dependencies] -config = "0.12" +config = "0.13" ``` ### Feature flags diff --git a/src/builder.rs b/src/builder.rs index ee83bfe..6f928c6 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -11,7 +11,7 @@ use crate::{config::Config, path::Expression, source::Source, value::Value}; /// It registers ordered sources of configuration to later build consistent [`Config`] from them. /// Configuration sources it defines are defaults, [`Source`]s and overrides. /// -/// Defaults are alaways loaded first and can be overwritten by any of two other sources. +/// Defaults are always loaded first and can be overwritten by any of two other sources. /// Overrides are always loaded last, thus cannot be overridden. /// Both can be only set explicitly key by key in code /// using [`set_default`](Self::set_default) or [`set_override`](Self::set_override). diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs index 3c18e3c..025e98a 100644 --- a/src/file/format/mod.rs +++ b/src/file/format/mod.rs @@ -116,6 +116,16 @@ impl FileFormat { #[cfg(feature = "json5")] FileFormat::Json5 => json5::parse(uri, text), + + #[cfg(all( + not(feature = "toml"), + not(feature = "json"), + not(feature = "yaml"), + not(feature = "ini"), + not(feature = "ron"), + not(feature = "json5"), + ))] + _ => unreachable!("No features are enabled, this library won't work without features"), } } } |