Age | Commit message (Collapse) | Author |
|
|
|
|
|
This can be particularly helpful for `MY_SERVER_PORT=4334 cargo run`
|
|
Add support for RON format
|
|
|
|
Add workflow to block merges with fixup commits
|
|
actions: Let test, fmt, clippy only run if check succeeded
|
|
Update deps
|
|
Remove unused imports
|
|
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>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Misc changes
|
|
Remove dead code
|
|
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>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
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>
|
|
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>
|
|
And remove the dead code bit.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Rename get_str() → get_string() to match returned type
|
|
|
|
Add tests for json value array
|
|
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>
|
|
Remove Config::new()
|
|
Fix custom separator for group prefixes
|
|
|
|
Removes the ::new() constructor, because Config::default() does the
same.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Remove rustfmt on github-actions for nightly channel
|
|
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>
|
|
Documentation for `Config::set*()`
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Make function only available in tests
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
port to rust-ini 0.16
|
|
|
|
Version 0.11.0
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Add setter for setting config value once
|
|
Add Config::with_merged()
|
|
Config::merge() overwrite it later
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
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>
|
|
Replace travis with github actions
|