summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-05-04Renames parse_numbers to try_parsingJoel Gallant
2021-05-04Uses into_* for value conversions and adds bool as an optionJoel Gallant
2021-05-04Adds 'parse_numbers' options for EnvironmentJoel Gallant
This can be particularly helpful for `MY_SERVER_PORT=4334 cargo run`
2021-04-20Merge pull request #202 from skreborn/masterMatthias Beyer
Add support for RON format
2021-04-20Add support for RON formatLevente Morva
2021-04-13Merge pull request #195 from matthiasbeyer/actions-block-fixup-mergeMatthias Beyer
Add workflow to block merges with fixup commits
2021-04-13Merge pull request #199 from matthiasbeyer/actions-dependenciesMatthias Beyer
actions: Let test, fmt, clippy only run if check succeeded
2021-04-13Merge pull request #200 from matthiasbeyer/update-depsMatthias Beyer
Update deps
2021-04-09Merge pull request #191 from matthiasbeyer/remove-unused-importsMatthias Beyer
Remove unused imports
2021-04-09Ensure order in the galaxy... I mean the importsMatthias 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-09Remove unused importsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-04-09actions: Let test, fmt, clippy only run if check succeededMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-04-09Update dependency rust-init: 0.16 -> 0.17Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-04-09Update (dev) dependency float-cmp: 0.6 -> 0.8Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-04-03Merge pull request #193 from matthiasbeyer/miscMatthias Beyer
Misc changes
2021-04-03Merge pull request #190 from matthiasbeyer/remove-dead-codeMatthias Beyer
Remove dead code
2021-04-01Provide 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-01Simplify impl From<Vec<T>> for ValueKindMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-04-01Simplify impl of From<HashMap<String, T>> for ValueKindMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-04-01Add workflow to block merges with fixup commitsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-04-01Remove ConfigKind typeMatthias Beyer
This patch removes the ConfigKind::Frozen mechansim, which wasn't exported through the public interface at all. Because the ::Frozen variant was removed, the ConfigKind::Mutable variant is the only one remaining and because the ConfigKind type isn't exported in the API as well, we can move the variant members to the Config struct itself. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-31Simplify implementationMatthias Beyer
This patch simplifies the Source::collect_to() default implementation by making use of the ? operator as well as the std::iter API. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-31Fix: Remove allow(dead_code)Matthias Beyer
And remove the dead code bit. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-31Fix: Add missing Config::freeze() functionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-28Merge pull request #189 from alerque/func-renameMatthias Beyer
Rename get_str() → get_string() to match returned type
2021-03-28Rename get_str() → get_string() to match returned typeCaleb Maclennan
2021-03-26Merge pull request #187 from matthiasbeyer/test-json-sequenceMatthias Beyer
Add tests for json value array
2021-03-26Add tests for json value arrayMatthias Beyer
This is added because of #145 to confirm whether the issue is valid or not. As the test succeeds, the issue is not valid. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-26Merge pull request #184 from matthiasbeyer/config-only-default-constructorMatthias Beyer
Remove Config::new()
2021-03-26Merge pull request #185 from matthiasbeyer/custom-env-seperatorMatthias Beyer
Fix custom separator for group prefixes
2021-03-26Fix custom separator for group prefixesLyuben Todorov
2021-03-26Remove Config::new()Matthias Beyer
Removes the ::new() constructor, because Config::default() does the same. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-26Merge pull request #186 from matthiasbeyer/remove-rustfmt-nightlyMatthias Beyer
Remove rustfmt on github-actions for nightly channel
2021-03-26Remove rustfmt on github-actions for nightly channelMatthias Beyer
This is necessary because rustfmt seems to be unavailable on nightly from time to time. So we remove it here, so that our CI does not fail because of that. Beta and stable channel rustfmt continues to be checked, though. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-26Merge pull request #181 from matthiasbeyer/set-docMatthias Beyer
Documentation for `Config::set*()`
2021-03-19Add doc: Config::set_default()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-19Add doc: Config:set()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-18Merge pull request #179 from matthiasbeyer/make-fn-tests-onlyMatthias Beyer
Make function only available in tests
2021-03-18Make function only available in testsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-18Merge pull request #152 from decathorpe/masterMatthias Beyer
port to rust-ini 0.16
2021-03-18port to rust-ini 0.16Fabio Valentini
2021-03-17Merge pull request #177 from matthiasbeyer/prepare-0.110.11.0Matthias Beyer
Version 0.11.0
2021-03-17Update version: 0.10.1 -> 0.11.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-17Update version in usage exampleMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-17Replace travis-ci badge with maintenance badgeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-03-17Merge pull request #172 from matthiasbeyer/add-setterMatthias Beyer
Add setter for setting config value once
2021-03-17Merge pull request #166 from matthiasbeyer/builderMatthias Beyer
Add Config::with_merged()
2021-03-17Add 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-17Add 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-17Merge pull request #175 from matthiasbeyer/actionsMatthias Beyer
Replace travis with github actions