Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-01-29 | use 'Self' to refer to own type | Daniel Eades | |
2021-12-29 | de-glob imports | Daniel Eades | |
2021-12-28 | use infallible integer conversions where available | 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-11-21 | Add support for unsigned integers | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-11-21 | Remove support for integers smaller than i64 | Matthias Beyer | |
All our backend crates do not support integers smaller than i64, so there's no point in supporting them either. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-11-21 | Add test for testing value type | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
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-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-03 | ValueKind is now public to users of the crate | Matthew Edwards | |
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-04-01 | Provide a nice Display impl for ValueKind::{Array, Table} | Matthias Beyer | |
This patch changes the Display impl for ValueKind so that Array and Table are nicely displayed. This basically changes a user-facing implementation in a non-backwards-compatible way. But as the documentation for std states: Display is similar to Debug, but Display is for user-facing output [...] This is user-facing and I'd say this is okay. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-04-01 | Simplify impl From<Vec<T>> for ValueKind | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-04-01 | Simplify impl of From<HashMap<String, T>> for ValueKind | Matthias Beyer | |
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> | |||
2021-03-28 | Rename get_str() → get_string() to match returned type | Caleb Maclennan | |
2020-03-14 | General upgrade for clippy fix and remove of deprecated methods for errors | Federico Pasqua | |
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` | |||
2018-07-02 | Run rustfmt (nightly) | Ryan Leckey | |
2018-04-09 | Mark Value docs as text | Aleksey Ivanov | |
2017-11-14 | Add derive(PartialEq) for Value, ValueType | Colin Rofls | |
- closes #51 | |||
2017-07-30 | Remove ConfigResult; close #36 | Ryan Leckey | |
2017-06-22 | Impl Display for Value (partially) | Ryan Leckey | |
2017-06-13 | :shirt: Fix clippy warnings | Ryan Leckey | |
2017-06-03 | Make Value itself be deserializable | Ryan Leckey | |
2017-06-01 | Move things around and get some tests in place | Ryan Leckey | |
2017-03-08 | Initial work on deep serde integration | Ryan Leckey | |
2017-02-11 | Move to copy API instead of reference; fixes #9 | Ryan Leckey | |
2017-02-08 | Implement 'namespace' on File | Ryan Leckey | |
2017-02-07 | :shirt: | Ryan Leckey | |
2017-02-07 | Merge branch 'master' of https://github.com/mehcode/config-rs | Ryan Leckey | |
2017-02-07 | Add path resolution using a strict subset of JSONPath | Ryan Leckey | |
2017-02-02 | Add slice support and auto conversion of hash/slice sets | Ryan Leckey | |
2017-02-02 | Add support for Table/Array and deep merging of configuration values | Ryan Leckey | |
2017-01-30 | :green_heart: | Ryan Leckey | |
2017-01-30 | :shirt: | Ryan Leckey | |
2017-01-28 | Propagate Cow into Source | Ryan Leckey | |
2017-01-28 | Use 'Cow' to remove unnecessary allocations | Ryan Leckey | |
2017-01-26 | Refactor the file source to allow for N formats; implement JSON. | Ryan Leckey | |
2017-01-26 | Add some examples | Ryan Leckey | |
2017-01-25 | :memo: | Ryan Leckey | |
2017-01-25 | Big cleanup of the Value API | Ryan Leckey | |
2017-01-23 | Initial commit. | Ryan Leckey | |