Skip to content

Releases: LukasKalbertodt/confique

v0.2.5

10 Dec 11:22
15c729d
Compare
Choose a tag to compare
  • Add #[config(partial_attr(...))] struct attribute to specify attributes for
    the partial type.
  • Allow "yes" and "no" as values when deserializing bool from env. Also, the
    match is done completely case insensitive now, such that e.g. "True", "tRuE"
    are accepted now.

0.2.4

02 Jul 08:19
0a79a43
Compare
Choose a tag to compare
  • Fixed enum deserialization from env values

v0.2.3

10 Mar 12:12
29a5c05
Compare
Choose a tag to compare

Fixed

  • Add #[allow(missing_docs)] to some generated code to avoid problems in
    crates that #[forbid(missing_docs)] globally.
  • Fix badge in README

Added

  • Add short docs to generated module (to explains its purpose and avoid
    confusion when people find it in their docs)

Changed

  • Internal change that potentially improves compile time a tiny bit.

v0.2.2

25 Nov 09:08
7830f32
Compare
Choose a tag to compare

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, None or Some. A test has been added to make sure
    this does not happen again in the future.
    (Partially in #23, thanks @aschey)

v0.2.1

06 Nov 11:47
ad48850
Compare
Choose a tag to compare

Added

  • parse_env attribute 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_yaml to 0.9 (this is only an internal dependency).

v0.2.0

21 Oct 17:07
324cede
Compare
Choose a tag to compare

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

v0.1.4

14 Oct 14:36
90344eb
Compare
Choose a tag to compare

Fixed

  • Derive attribute env can now be used together with deserialize_with (#2)

v0.1.3 (2022-04-07)

11 Oct 10:59
6c35c85
Compare
Choose a tag to compare

Fixed

  • Derive macro does not product unparsable output anymore if the visibility
    modifier of the struct is pub or pub(in path).

Changed

  • The output of toml::format now emits empty lines above nested objects in a
    more useful manner.

v0.1.2 (2022-03-30)

11 Oct 10:58
2f0f749
Compare
Choose a tag to compare

Fixed

  • Fixed output of toml::format when leaf fields were listed after nested
    fields in a configuration.

v0.1.1

03 Nov 16:42
cc1681b
Compare
Choose a tag to compare

Added

  • deserialize_with attribute which is (basically) forwarded to serde

Fixed

  • Improve some spans in error messages