Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-10-23 | Fix a doc link by properly marking Vec<String> | Ian Jackson | |
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2023-10-23 | Fix a doc link to with_list_parse_key | Ian Jackson | |
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2023-07-22 | Make the parse list key to lowercase when insert the keys | bigduu | |
Signed-off-by: bigduu <mugeng.du@qq.com> | |||
2023-01-02 | Copy member docs to builder functions | Matthias Beyer | |
The members are not visible on docs.rs, so copy their documentation to the respective builder functions so users can see what they're about. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2022-11-07 | Fix clippy: Do not manually check for None | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2022-09-29 | convert-case: fix for building with this feature excluded | Dan Aloni | |
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-09-29 | Environment: add a rustdoc comment | Dan Aloni | |
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 'Self' to refer to own type | Daniel Eades | |
2021-12-29 | de-glob imports | Daniel Eades | |
2021-12-28 | Add #[must_use] annotations | Matthias Beyer | |
Clippy nightly fails the checks because it wants us to have a `#[must_use]` annotation on functions that return `Self`. So we add these annotations with this patch. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-11-26 | Merge pull request #242 from ctron/feature/provide_env_1 | Matthias Beyer | |
feat: allow providing the environment for testing | |||
2021-11-22 | feat: allow providing the environment for testing | Jens Reimann | |
closes #241 Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> | |||
2021-11-21 | Add support for different sized integers | Matthias Beyer | |
This also enables support for 128 bit integers. Nothing is tested, though. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-10-02 | Add deprecation notice to Environment::new | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-10-02 | Fix clippy: Remove Default impl for Environment, derive it | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-08-15 | Rename MapImpl to Map | David Orchard | |
2021-08-15 | Move order preservation under a feature gate | David Orchard | |
2021-08-15 | Use LinkedHashMap in place of HashMap | David Orchard | |
2021-06-09 | refactor(env): optimize and reduce allocations | Eduardo Canellas | |
2021-05-04 | Fix env tests, remove unused import | John Brandt | |
2021-05-04 | Add perfromance note to `try_parsing` | John Brandt | |
2021-05-04 | reduce env parsing repetition | John Brandt | |
2021-05-04 | more predictable env parsing and reduced clones | John Brandt | |
2021-05-04 | clearer env bool parse if | John Brandt | |
2021-05-04 | If env value is true or false parse as bool | 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 | |
2021-03-16 | Fix clippy: Use is_empty() instead of comparing to empty string | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-03-16 | Clippy: Remove manual implementation of map | Matthias Beyer | |
Because clippy complains on nightly. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2020-03-14 | General upgrade for clippy fix and remove of deprecated methods for errors | Federico Pasqua | |
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-07-02 | Run rustfmt (nightly) | Ryan Leckey | |
2018-01-29 | add default prefix separator | Christian Fochler | |
- no need to add '_' to the prefix | |||
2018-01-28 | make separator optional | Christian Fochler | |
2018-01-28 | Revert "remove unnecessary env key manipulation" | Christian Fochler | |
This reverts commit 36b477df0f9bda4d153b674b3007ee087e44d67f. | |||
2017-12-14 | remove unnecessary env key manipulation | Christian Fochler | |
2017-07-30 | Remove ConfigResult; close #36 | Ryan Leckey | |
2017-06-22 | Add builder API to Config | Ryan Leckey | |
2017-06-16 | Fix a couple issues, mainly with env source | Ryan Leckey | |
2017-06-13 | Add Environment | Ryan Leckey | |
2017-03-08 | Initial work on deep serde integration | Ryan Leckey | |