mirror of
https://github.com/OMGeeky/confique.git
synced 2025-12-30 16:23:58 +01:00
3.0 KiB
3.0 KiB
Changelog
All notable changes to this project will be documented in this file.
Unreleased
0.2.2 - 2022-11-25
Fixed
- Use fully qualified paths for all symbols emitted by the derive macro.
Before this, the derive would throw errors if you shadowed any of the symbols
Result,Option,Ok,NoneorSome. A test has been added to make sure this does not happen again in the future. (Partially in #23, thanks @aschey)
0.2.1 - 2022-11-06
Added
parse_envattribute for custom parsing of environment variables (allows you to load lists and other complex objects from env vars). (in #22, thanks @cyphersnake)
Changed
- Updated
serde_yamlto 0.9 (this is only an internal dependency).
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
PartialEqfor allmetaitems - Impl
Serializeformeta::Expr
Changed
- Breaking: rename
{toml,yaml}::formattotemplate - Breaking: make
FormatOptionsand somemetatypes#[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
envcan now be used together withdeserialize_with(#2)
0.1.3 - 2022-04-07
Fixed
- Derive macro does not product unparsable output anymore if the visibility
modifier of the struct is
puborpub(in path).
Changed
- The output of
toml::formatnow emits empty lines above nested objects in a more useful manner.
0.1.2 - 2022-03-30
Fixed
- Fixed output of
toml::formatwhen leaf fields were listed afternestedfields in a configuration.
0.1.1 - 2021-11-03
Added
deserialize_withattribute which is (basically) forwarded toserde
Fixed
- Improve some spans in error messages
0.1.0 - 2021-07-28
Added
- Everything.