Skip to content

Commit e5d3420

Browse files
Bump version to 0.3.0
1 parent 1725b32 commit e5d3420

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

CHANGELOG.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
55

66
## [Unreleased]
77

8+
## [0.3.0] - 2024-10-18
9+
10+
- **Breaking**: Raise MSRV to 1.61.0
11+
- **Breaking**: `toml`, `yaml` and `json5` are no longer default features ([`19d9ddc`](https://github.com/LukasKalbertodt/confique/commit/19d9ddc9537baf4e82274591ba92f02d4c5c1f36)). You now have to manually specify the features you need in `Cargo.toml`.
12+
- **Breaking**: env vars set to an empty string, which fail to deserialize/parse/validate are now treated as not set. This is technically a breaking change, but I think this is the expected behavior and shouldn't affect you. ([#39](https://github.com/LukasKalbertodt/confique/pull/39))
13+
- ⭐ Add validation feature ([#40](https://github.com/LukasKalbertodt/confique/pull/40))
14+
- `#[config(validate = path::to::function)] field: u32` to call the given function during field deserialization.
15+
- `#[config(validate(!s.is_empty(), "user must not be empty"))] user: String` is a `assert!`-style syntax to simple validation checks.
16+
- Validation can also be added to full structs.
17+
- See docs and examples for more information!
18+
- Stop including `Error::source` in the `Display` output of `Error` ([`d454f0957`](https://github.com/LukasKalbertodt/confique/commit/d454f0957eb1cb4d566ebc448224b323a609d080))
19+
- Improve & refactor docs of `derive(Config` a bit
20+
- Update dependencies (syn to 2.0, heck to 0.5): this shouldn't affect you, except for faster compile times due to smaller dependency tree.
21+
22+
823
## [0.2.6] - 2024-10-10
924
- Fix compile errors when using `confique` derive without having `serde` in your direct dependencies (see [#38](https://github.com/LukasKalbertodt/confique/issues/38)).
1025
- Update `toml` dependency to 0.8
@@ -108,7 +123,8 @@ All notable changes to this project will be documented in this file.
108123
- Everything.
109124

110125

111-
[Unreleased]: https://github.com/LukasKalbertodt/confique/compare/v0.2.6...HEAD
126+
[Unreleased]: https://github.com/LukasKalbertodt/confique/compare/v0.3.0...HEAD
127+
[0.3.0]: https://github.com/LukasKalbertodt/confique/compare/v0.2.6...v0.3.0
112128
[0.2.6]: https://github.com/LukasKalbertodt/confique/compare/v0.2.5...v0.2.6
113129
[0.2.5]: https://github.com/LukasKalbertodt/confique/compare/v0.2.4...v0.2.5
114130
[0.2.4]: https://github.com/LukasKalbertodt/confique/compare/v0.2.3...v0.2.4

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "confique"
3-
version = "0.2.6"
3+
version = "0.3.0"
44
authors = ["Lukas Kalbertodt <[email protected]>"]
55
edition = "2021"
66
rust-version = "1.61.0"
@@ -40,7 +40,7 @@ yaml = ["serde_yaml"]
4040

4141

4242
[dependencies]
43-
confique-macro = { version = "=0.0.10", path = "macro" }
43+
confique-macro = { version = "=0.0.11", path = "macro" }
4444
json5 = { version = "0.4.1", optional = true }
4545
serde = { version = "1", features = ["derive"] }
4646
serde_yaml = { version = "0.9", optional = true }

macro/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "confique-macro"
3-
version = "0.0.10"
3+
version = "0.0.11"
44
authors = ["Lukas Kalbertodt <[email protected]>"]
55
edition = "2021"
66

0 commit comments

Comments
 (0)