Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-03-14 | Merge branch 'update-rust-ini' | Matthias Beyer | |
2021-03-14 | Merge branch 'builder' | Matthias Beyer | |
2021-03-14 | Update dependency: rust-ini: 0.13 -> 0.16 | Fabio Valentini | |
Cherry picked, fixed merge conflict in Cargo.toml and ran cargo-fmt on the new tree. (cherry picked from commit 43ca83a4fa6ea55274f7c78a1914fe93476916ed) Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-03-13 | Add Config::with_merged() | Matthias Beyer | |
This patch adds a builder-pattern version of Config::merge(), which can be used for method-chain-building Config objects. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-03-13 | Add a Config::set_once() function to set a value once (and let ↵ | Matthias Beyer | |
Config::merge() overwrite it later Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-03-13 | Fix clippy: Use is_empty() instead of comparing to empty string | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2020-10-01 | Run cargo-fmt | Matthias Beyer | |
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 | |
2019-12-07 | Merge pull request #119 from vorner/universal-map-keys | Ryan Leckey | |
Allow arbitrary types of map keys | |||
2019-12-07 | Remove automatic lowercase | Ryan Leckey | |
2019-08-22 | Allow arbitrary types of map keys | Michal 'vorner' Vaner | |
Of particular interest are maps that have numbers or enums as keys. Closes #74. | |||
2019-06-27 | port to nom 5 | Geoffroy Couprie | |
2019-05-09 | Remove ValueWithKey struct | Guillem Nieto | |
While using this library, I end up having lifetime issues with `Config::get`. I've seen that current implementation forces the calleer to match `key` lifetime to the output of the function. My use case is, under some circumstances, return a suffixed version of the config key. Something similar to: ``` if some_condition == true { let key_name = format!("{}_suffix", key); self.config.get(&key_name) } else { self.config.get(key) } ``` This code is noy compiling for me due to conflicting lifetimes. To avoid this, I've started looking to the code and I've found that `key` needed this lifetime because of `ValueWithKey`. The purpouse of this struct seems to be add more information to the errors that are returned to the user. To mitigate this lifetime coupling I've: - Mapped the error on `Config::get` to include the originating key of the current error - Remove all the code related with `ValueWithKey` | |||
2019-05-09 | Remove try_defaults_from and set_defaults (for now) as '#[serde(default)]' ↵ | Ryan Leckey | |
works thanks to #106 | |||
2019-04-08 | Add missing doc | tyranron | |
2019-04-08 | Fix annoying 'invalid type: unit value, expected struct Settings' error | tyranron | |
2019-04-08 | Bootstrap solution | tyranron | |
2019-01-03 | Re-export file source type markers (fixes #91) | Ryan Leckey | |
2018-12-30 | Tracking a path where an error happens during deserialization | Michal 'vorner' Vaner | |
Related to #83, but doesn't solve that specific problem :-(. That specific error message ("missing field") comes from somewhere else than this library. | |||
2018-12-30 | Deserializing: Simplify the MapAccess thing | Michal 'vorner' Vaner | |
2018-11-10 | support reading enums from config | Eugeen Sablin | |
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-07-02 | Merge branch 'feature/ini' of https://github.com/woodgear/config-rs | Ryan Leckey | |
2018-07-02 | Fix test failures from upgrade to nom 4 | Ryan Leckey | |
2018-07-02 | Merge branch 'master' of https://github.com/Geal/config-rs | Ryan Leckey | |
2018-07-02 | Merge branch 'master' of https://github.com/limbo-rs/config-rs | Ryan Leckey | |
2018-06-25 | option rust-ini | san.dai | |
2018-06-15 | fix doc test | saber.wu | |
2018-06-15 | support ini | saber.wu | |
2018-04-09 | Mark Value docs as text | Aleksey Ivanov | |
2018-04-09 | [Close #70] Support newtype struct deserialization | Aleksey Ivanov | |
2018-04-08 | Add ConfigSerializer | XX | |
2018-04-08 | Fix initialy set arr path | XX | |
2018-04-06 | Add config serialize ability | XX | |
2018-03-12 | Merge pull request #59 from ChriFo/fix/env | Ryan Leckey | |
Adjust environment variable handling | |||
2018-02-17 | update to nom 4 | Geoffroy Couprie | |
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. | |||
2018-01-26 | Merge pull request #54 from cmyr/partialeq-value | Ryan Leckey | |
Add derive(PartialEq) for Value, ValueType | |||
2018-01-26 | Merge pull request #50 from snipsco/master | Ryan Leckey | |
use nom's error_kind() to be robust againt nom feature selection accross a project | |||
2017-12-14 | remove unnecessary env key manipulation | Christian Fochler | |
2017-11-14 | Add derive(PartialEq) for Value, ValueType | Colin Rofls | |
- closes #51 | |||
2017-10-07 | Fix markdown lists | Sven-Hendrik Haase | |
2017-09-20 | fix weird nom errorkind issue | Mathieu Poumeyrol | |
2017-09-01 | Added HJSON (Human-Readable JSON) as a config file format | Raphael Cohn | |
2017-08-05 | Fix tests and put back .deserialize as deprecated0.7.0 | Ryan Leckey | |