Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-07-22 | Make the parse list key to lowercase when insert the keys | bigduu | |
Signed-off-by: bigduu <mugeng.du@qq.com> | |||
2022-09-29 | env: add a 'convert_case' field to ease dealing with kebab-case | Dan Aloni | |
This allows usage of `kebab-case` attribute in serde, mapping unambiguously into a config value given a multiple character separator. This also add the `convert-case` feature. For example: let environment = Environment::default() .prefix("PREFIX") .translate_key(Case::Kebab) .separator("__"); | |||
2022-08-02 | Fix: Use float_cmp for testing floats | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2022-06-28 | Use TryInto for more permissive deserialization for integers | Kesavan Yogeswaran | |
* Attempt to convert between integer types using `TryInto`-based conversions rather than blanket failing for some source and destination types. * Use `into_uint` instead of `into_int` in `Value` Deserialize implementations for unsigned integer types. Previously, we were converting from signed types to unsigned types using `as`, which can lead to surprise integer values conversions (#93). Fixes #352 and #93 | |||
2022-04-18 | test: Adopt test-env to fix random test failure | Xuanwo | |
Signed-off-by: Xuanwo <github@xuanwo.io> | |||
2022-03-11 | chore: add the possibility to keep the prefix from env var. | Jérémy Audiger | |
2022-02-28 | feat: env contains list of strings | simon-an | |
Signed-off-by: simon-an <26556185+simon-an@users.noreply.github.com> | |||
2022-02-24 | add prefix separator support | Conrad Ludgate | |
2022-01-29 | use semicolons if nothing returned | Daniel Eades | |
2021-12-29 | silence/address unused code warnings | Daniel Eades | |
2021-12-29 | de-glob imports | Daniel Eades | |
2021-12-29 | remove 'extern crate' imports | Daniel Eades | |
2021-11-23 | Merge pull request #251 from conradludgate/value-deserialize | Matthias Beyer | |
rename try_into to try_deserialize to avoid confusion | |||
2021-11-23 | update tests not use deprecated methods | Conrad Ludgate | |
2021-11-23 | rename try_into to try_deserialize to avoid confusion | Conrad Ludgate | |
2021-06-08 | Fix: Remove trailing comma | Matthias Beyer | |
Because the old Rust version in the CI fails with this comma in the macro call, we remove it here. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-05-08 | Use ConfigBuilder in env.rs tests | Radosław Kot | |
2021-05-04 | Fix env tests, remove unused import | John Brandt | |
2021-05-04 | more environment variable parsing tests | John Brandt | |
2021-05-04 | Renames parse_numbers to try_parsing | Joel Gallant | |
2021-05-04 | Uses into_* for value conversions and adds bool as an option | Joel Gallant | |
2021-05-04 | Adds 'parse_numbers' options for Environment | Joel Gallant | |
This can be particularly helpful for `MY_SERVER_PORT=4334 cargo run` | |||
2021-04-09 | Ensure order in the galaxy... I mean the imports | Matthias Beyer | |
This patch sorts the imports: 1. std imports 2. external crate imports 3. own module imports In three blocks, each alphabetically (with is also enforced by rustfmt). As well as it prefixes the imports of own modules with crate:: This is just a quality-of-life patch :-) Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-03-26 | Fix custom separator for group prefixes | Lyuben Todorov | |
2018-09-25 | Use a build config on Environment instead of a feature flag for #78 | Ryan Leckey | |
2018-09-26 | Treat empty environment variables as unset | Phil Booth | |
2018-07-02 | Update readme/changelog for 0.9 | Ryan Leckey | |
2018-02-13 | add test for prefix with variant forms of spelling | Christian Fochler | |
2018-01-29 | add default prefix separator | Christian Fochler | |
- no need to add '_' to the prefix | |||
2018-01-28 | add tests for environment handling | Christian Fochler | |