config-rs
config-rs copied to clipboard
⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
Crate: yaml-rust Version: 0.4.5 Warning: unmaintained Title: yaml-rust is unmaintained. Date: 2024-03-20 ID: RUSTSEC-2024-0320 URL: https://rustsec.org/advisories/RUSTSEC-2024-0320 Please consider switching to the actively maintained yaml-rust2 fork of the original project: [yaml-rust2](https://github.com/Ethiraric/yaml-rust2)...
Minor maintenance task. Upgraded crate versions.
Just adding a note here for reference: - HJSON support was removed in the past: https://github.com/mehcode/config-rs/issues/198 - Recently that crate upgraded to Serde 1.x: https://github.com/hjson/hjson-rust/issues/6#issuecomment-2245155197 If I ever have the...
The path parser was re-written to not use `nom`. This drops a dependency, benchmarks twice as fast and fixes #516.
This example shows how to create global configuration module that may be used anywhere in the code with predefined interface.
This PR adds support for real numbers as keys in Yaml hashes, in addition to strings and integers.
When using large numbers once can write `5_000` instead of `5000` in Rust. Using such a format in config files does not work.
I have a config that contains an entry `watched_variables` that I want to deserialize into the `WatchedVariables` structure defined below ```json5 { "watched_variables": { "PickObject": ["n_objects"], }, } ``` ```rust...
I would like to transform field values that start with a certain prefix during deserialization. ```yaml fields: some: thing some_secret: ENC() ``` Is this already possible?
Hi, just wanted to offer some feedback on the documentation as a first-time user. I'm looking at this here: https://github.com/rust-cli/config-rs/blob/main/examples/hierarchical-env/settings.rs And I think the example could be improved to make...