summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-03-14fixup! Add support for different sized integersintegersMatthias Beyer
2021-03-14Add support for different sized integersMatthias Beyer
This also enables support for 128 bit integers. Nothing is tested, though. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-14Merge branch 'config-rs-issue-173'HEADmasterMatthias Beyer
2021-03-14Rename try_into/try_fromMatthias Beyer
Because of the clash in names with the TryInto and TryFrom traits, we're renaming the functions here to try_serialize/try_deserialize. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-14Add entry for 0.11.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-14Merge branch 'update-rust-ini'Matthias Beyer
2021-03-14Merge branch 'builder'Matthias Beyer
2021-03-14Merge branch 'add-setter'Matthias Beyer
2021-03-14Update dependency: rust-ini: 0.13 -> 0.16Fabio 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-13Add 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-13Add 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-13Merge branch 'prepare-0.11'v0.11.0Matthias Beyer
2021-03-13Version: 0.11.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Merge branch 'srht-builds'Matthias Beyer
2021-03-13Fix imports for new crate nameMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Tested-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Add maintenance badgeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Fix clippy: Use is_empty() instead of comparing to empty stringMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Update Cargo.toml settings for maintenance forkMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Fix expected error messageMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Fix test failureMatthias Beyer
As reported in https://github.com/hjson/hjson-rust/issues/23 the issue of the failing tests is the serde_hjson crate. The problem can be prevented (as reported by https://github.com/hjson/hjson-rust/issues/23#issuecomment-775520018) by disabling the default features of the crate (namingly preservation of key order). This commit disables the default features of serde_hjson to fix our tests. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Update READMEMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Add srht build configurationMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-13Remove travisMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-10-11Merge pull request #154 from matthiasbeyer/patch-1Joel Gallant
Update version in usage example
2020-10-11Merge pull request #156 from matthiasbeyer/ensure-formatJoel Gallant
Ensure format
2020-10-11Merge pull request #155 from matthiasbeyer/formatJoel Gallant
Run cargo-fmt
2020-10-01travis: Ensure formatMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-10-01Run cargo-fmtMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-10-01Update version in usage exampleMatthias Beyer
2020-09-16Merge pull request #151 from szarykott/win_testsJoel Gallant
Fix paths in tests expectations for all platforms
2020-09-07Use `display` method on PathBuf in testsrdkt13
2020-09-06Fix paths in tests expectations for all platformsrdkt13
2020-09-03Merge pull request #131 from ignatenkobrain/patch-2Joel Gallant
chore: Update float-cmp to 0.6
2020-09-03Merge pull request #134 from eisterman/fix_clippy_warningsJoel Gallant
Fix of all the clippy warnings and removing of deprecated Error::description method
2020-03-14Clippy fix for examplesFederico Pasqua
2020-03-14General upgrade for clippy fix and remove of deprecated methods for errorsFederico Pasqua
2020-02-23chore: Update float-cmp to 0.6Igor Gnatenko
2019-12-07Prepare v0.10.1Ryan Leckey
2019-12-07Fix test for enum keys as auto lowercase was disabledRyan Leckey
2019-12-07Merge pull request #119 from vorner/universal-map-keysRyan Leckey
Allow arbitrary types of map keys
2019-12-07Prepare v0.10Ryan Leckey
2019-12-07Update CHANGELOGRyan Leckey
2019-12-07Remove automatic lowercaseRyan Leckey
2019-12-07Fix testsRyan Leckey
2019-12-07Merge pull request #115 from Geal/masterRyan Leckey
port to nom 5
2019-08-22Allow arbitrary types of map keysMichal 'vorner' Vaner
Of particular interest are maps that have numbers or enums as keys. Closes #74.
2019-06-27port to nom 5Geoffroy Couprie
2019-05-13Merge pull request #109 from gnieto/task/remove-value-with-keyRyan Leckey
Remove ValueWithKey struct
2019-05-09Remove ValueWithKey structGuillem 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-09Update CHANGELOG.mdRyan Leckey