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

Simplify/remove build.rs following the bump to 2021 edition #1062

Merged
merged 7 commits into from
Sep 11, 2023

Conversation

osiewicz
Copy link
Contributor

@osiewicz osiewicz commented Sep 3, 2023

Since serde-json's MSRV is 1.56 (due to using a 2021 edition), most of the hidden features enabled in build.rs shouldn't ever get enabled during the build. They mostly indicated whether some of the BTreeMap methods were available.

The last one for limb_width can be implemented with a #[cfg] or two. it is a separate commit in case this change is not welcome - I see how it complicates code slightly.

Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The retain and get_key_value and remove_entry changes look good.

I would prefer not to take the LimbConfig change. I think that code will be all right as is.

src/map.rs Outdated Show resolved Hide resolved
Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay dtolnay merged commit 2c22077 into serde-rs:master Sep 11, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants