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

Upgrade to ordered-float v2 #27

Merged
merged 2 commits into from
Jul 15, 2020
Merged

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Jul 14, 2020

Two commits in here.

Upgrade to ordered-float v2.
The new version is semver incompatible with v1; upgrading here reduces the chance of duplicate copies of ordered-float in large dependency graphs.


Upgrade to Rust 2018.
Since ordered-float v2 bumps the MSRV to 1.34, might as well take the
opportunity to upgrade to Rust 2018 syntax.

Copy link
Owner

@arcnmx arcnmx left a comment

Choose a reason for hiding this comment

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

Sounds good to me. The tests also need some fixing for 2018 though: https://travis-ci.org/github/arcnmx/serde-value/builds/707870476 (not sure why github isn't showing this...)

@benesch
Copy link
Contributor Author

benesch commented Jul 14, 2020

Ah indeed, thanks. Pushed up a fix for the texts.

@benesch
Copy link
Contributor Author

benesch commented Jul 14, 2020

And CI is happy, as far as I can tell: https://travis-ci.org/github/arcnmx/serde-value/builds/708024993

Cargo.toml Outdated

[dev-dependencies]
serde_derive = "^1.0.0"
serde = { version = "^1.0.0", features = ["derive"] }
Copy link
Owner

Choose a reason for hiding this comment

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

So I don't think that actually does what it looks like it should - the "derive" feature now becomes a dependency of the normal library as well. Until this is fixed in cargo, keeping the separate serde_derive dependency is best.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oy, that's a major footgun. Thanks for catching. Figured out how to make this work while still using serde_derive.

Since ordered-float v2 bumps the MSRV to 1.34, might as well take the
opportunity to upgrade to Rust 2018 syntax.
@arcnmx arcnmx merged commit 5297616 into arcnmx:master Jul 15, 2020
@benesch benesch deleted the ordered-float-2 branch July 15, 2020 18:11
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