From 324cedee470e2ec6208ecdb404adc5a2950a2c83 Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Fri, 21 Oct 2022 19:03:49 +0200 Subject: [PATCH] Bump version to 0.2.0 and update changelog --- CHANGELOG.md | 27 ++++++++++++++++++++++++++- Cargo.toml | 4 ++-- macro/Cargo.toml | 2 +- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b14758..8b14ad1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,30 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [0.2.0] - 2022-10-21 +### Added +- Add support for **array default values**, e.g. `#[config(default = [1, 2, 3])` +- Add support for **map default values**, e.g. `#[config(default = { "cat": 3, "dog": 5 })` +- **Add JSON5 support** +- Show environment variable key in config template +- Impl `PartialEq` for all `meta` items +- Impl `Serialize` for `meta::Expr` + +### Changed +- **Breaking**: rename `{toml,yaml}::format` to `template` +- **Breaking**: make `FormatOptions` and some `meta` types `#[non_exhaustive]` +- Move to Rust 2021 (bumps MSRV to 1.56) +- Improved docs + +### Fixed +- Fix type inference for float default values +- Fix name clash with generated helper functions +- Fix incorrect newlines for string default values in YAML config template + +### Internal +- Rewrite large parts of the crate, mostly to deduplicate logic +- Add lots of tests + ## [0.1.4] - 2022-10-14 ### Fixed - Derive attribute `env` can now be used together with `deserialize_with` (#2) @@ -39,7 +63,8 @@ All notable changes to this project will be documented in this file. - Everything. -[Unreleased]: https://github.com/LukasKalbertodt/confique/compare/v0.1.4...HEAD +[Unreleased]: https://github.com/LukasKalbertodt/confique/compare/v0.2.0...HEAD +[0.2.0]: https://github.com/LukasKalbertodt/confique/compare/v0.1.4...v0.2.0 [0.1.4]: https://github.com/LukasKalbertodt/confique/compare/v0.1.3...v0.1.4 [0.1.3]: https://github.com/LukasKalbertodt/confique/compare/v0.1.2...v0.1.3 [0.1.2]: https://github.com/LukasKalbertodt/confique/compare/v0.1.1...v0.1.2 diff --git a/Cargo.toml b/Cargo.toml index cb35547..88988a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "confique" -version = "0.1.4" +version = "0.2.0" authors = ["Lukas Kalbertodt "] edition = "2021" @@ -26,7 +26,7 @@ yaml = ["serde_yaml"] [dependencies] -confique-macro = { version = "=0.0.4", path = "macro" } +confique-macro = { version = "=0.0.5", path = "macro" } json5 = { version = "0.4.1", optional = true } serde = { version = "1", features = ["derive"] } serde_yaml = { version = "0.8", optional = true } diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 9782f75..a5f9f8b 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "confique-macro" -version = "0.0.4" +version = "0.0.5" authors = ["Lukas Kalbertodt "] edition = "2021"