Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration of my config-rs-maint fork #174

Closed
wants to merge 27 commits into from

Conversation

matthiasbeyer
Copy link
Member

This is the master I've been working on for config-rs-maint. We can integrate my changes from there back here in config-rs, I'd love to do that, if everyone agrees.

Comments and suggestions welcome!

matthiasbeyer and others added 21 commits March 13, 2021 10:46
Signed-off-by: Matthias Beyer <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
As reported in

    hjson/hjson-rust#23

the issue of the failing tests is the serde_hjson crate. The problem can
be prevented (as reported by
hjson/hjson-rust#23 (comment)) 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 <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
Tested-by: Matthias Beyer <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
…::merge() overwrite it later

Signed-off-by: Matthias Beyer <[email protected]>
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 <[email protected]>
Cherry picked, fixed merge conflict in Cargo.toml and ran cargo-fmt on
the new tree.

(cherry picked from commit 43ca83a)
Signed-off-by: Matthias Beyer <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
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 <[email protected]>
@matthiasbeyer
Copy link
Member Author

I'd love to get github actions patches on this branch before merging, so we actually get CI, because these changes here also removed the travis configuration.
If someone wants to step up, feel free to send me patches. I will have time during next week to develop them, I guess, if nobody sends some changes before that 😆 !

@matthiasbeyer
Copy link
Member Author

I guess I'd rather backport these changes individually for a cleaner history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants