-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
There was a problem hiding this 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...)
Ah indeed, thanks. Pushed up a fix for the texts. |
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"] } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.