confy icon indicating copy to clipboard operation
confy copied to clipboard

Adding `ron` support

Open mWalrus opened this issue 3 years ago • 3 comments

This adds the feature flag ron_conf to confy which allows confy to work with ron files.

Note: I also set the rust language version in Cargo.toml to "2021".

mWalrus avatar Oct 12 '22 10:10 mWalrus

I'm marking this as draft as I'm unsure how this affects versioning. Please let me know if there is anything I've missed or should correct :)

mWalrus avatar Oct 12 '22 10:10 mWalrus

Hey thanks for doing this! I am okay with adding this since we compile out features we don't use. I left a couple comments to fix up other than that I'm happy to merge.

I'd love some tests if possible ❤️

deg4uss3r avatar Oct 18 '22 19:10 deg4uss3r

Hi @deg4uss3r, thanks for the review and criticism. I realized that i kinda went out of scope changing some of the other things in this PR, I'll make sure to correct these things later today :)

mWalrus avatar Oct 19 '22 06:10 mWalrus

I've made all of the requested changes and made sure that everything is working locally. I added a test for checking that confy can deserialize into structs with a name different from the struct that was originally serialized (https://github.com/rust-cli/confy/pull/71/commits/381b3ff3ee3a702cff36bebfb07e56645a305b2d related) and all test pass when running cargo test --features ron_conf --no-default-features.

Not sure if I could test for anything else since all the other parts of the program work the same way they normally do.

mWalrus avatar Oct 19 '22 18:10 mWalrus

@mWalrus These look great, thank you so much for making those changes!

All this looks good to me, if CI passes let's get this merged!

I'll also bump the edition in an MR then do a release.

deg4uss3r avatar Oct 20 '22 01:10 deg4uss3r

Awesome, thanks for all the feedback! This was my first PR so it was slightly scary :sweat_smile:

mWalrus avatar Oct 20 '22 06:10 mWalrus

No worries at all @mWalrus I hope this helped! If you have any questions just let me know :D

deg4uss3r avatar Oct 20 '22 22:10 deg4uss3r