From 79f6dc9b68aeb76bc5aa007d87c942ea38120d2a Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sat, 23 Mar 2024 20:55:30 +0000 Subject: [PATCH] chore(confik): prepare release 0.11.7 --- .vscode/settings.json | 1 + confik/CHANGELOG.md | 2 ++ confik/Cargo.toml | 8 ++++---- confik/README.md | 4 ++-- confik/src/lib.md | 5 ++--- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7ec3649..98800ec 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "cSpell.words": [ + "bigdecimal", "bytesize", "chrono", "codecov", diff --git a/confik/CHANGELOG.md b/confik/CHANGELOG.md index 801f308..45b1095 100644 --- a/confik/CHANGELOG.md +++ b/confik/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 0.11.7 + - Implement `Configuration` for [`bigdecimal::BigDecimal`](https://docs.rs/bigdecimal/0.4/bigdecimal/struct.BigDecimal.html). ## 0.11.6 diff --git a/confik/Cargo.toml b/confik/Cargo.toml index 32b5564..8043b95 100644 --- a/confik/Cargo.toml +++ b/confik/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "confik" -version = "0.11.6" +version = "0.11.7" description = "A library for reading application configuration split across multiple sources" authors = ["Rob Ede "] keywords = ["parser", "serde", "utility", "config"] @@ -29,16 +29,16 @@ json = ["dep:serde_json"] toml = ["dep:toml"] # Destination types +bigdecimal = ["dep:bigdecimal"] bytesize = ["dep:bytesize"] -common = [] camino = ["dep:camino"] chrono = ["dep:chrono"] +common = [] ipnetwork = ["dep:ipnetwork"] rust_decimal = ["dep:rust_decimal"] +secrecy = ["dep:secrecy"] url = ["dep:url"] uuid = ["dep:uuid"] -secrecy = ["dep:secrecy"] -bigdecimal = ["dep:bigdecimal"] [dependencies] confik-macros = "=0.11.1" diff --git a/confik/README.md b/confik/README.md index f1c38d9..479fa19 100644 --- a/confik/README.md +++ b/confik/README.md @@ -3,8 +3,8 @@ [![crates.io](https://img.shields.io/crates/v/confik?label=latest)](https://crates.io/crates/confik) -[![Documentation](https://docs.rs/confik/badge.svg?version=0.11.6)](https://docs.rs/confik/0.11.6) -[![dependency status](https://deps.rs/crate/confik/0.11.6/status.svg)](https://deps.rs/crate/confik/0.11.6) +[![Documentation](https://docs.rs/confik/badge.svg?version=0.11.7)](https://docs.rs/confik/0.11.7) +[![dependency status](https://deps.rs/crate/confik/0.11.7/status.svg)](https://deps.rs/crate/confik/0.11.7) ![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/confik.svg)
[![CI](https://github.com/x52dev/confik/actions/workflows/ci.yml/badge.svg)](https://github.com/x52dev/confik/actions/workflows/ci.yml) diff --git a/confik/src/lib.md b/confik/src/lib.md index 894c31b..112083c 100644 --- a/confik/src/lib.md +++ b/confik/src/lib.md @@ -181,16 +181,15 @@ Defaults are specified on a per-field basis. This crate provides implementations of [`Configuration`] for a number of `std` types and the following third-party crates. Implementations for third-party crates are feature gated. +- `bigdecimal`: v0.4 - `bytesize`: v1 - `camino`: v1 - `chrono`: v0.4 - `ipnetwork`: v0.20 - `rust_decimal`: v1 +- `secrecy`: v0.8 (Note that `#[config(secret)]` is not needed, although it is harmless, for these types as they are always treated as secrets.) - `url`: v1 - `uuid`: v1 -- `secrecy`: v0.8 - - Note: `#[config(secret)]` is not needed (although it is harmless) for `secrecy`'s types as they are always treated as secrets. -- `bigdecimal`: v0.4 If there's another foreign type used in your config, then you will not be able to implement [`Configuration`] for it. Instead any type that implements [`Into`] or [`TryInto`] can be used.