-
Notifications
You must be signed in to change notification settings - Fork 47
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
update crate to edition 2021 #72
Conversation
- update multihash to v0.18.0 - update quickcheck to v1.0.3
@mxinden PTAL |
@@ -1,7 +1,8 @@ | |||
[package] | |||
authors = ["dignifiedquire <dignifiedquire@gmail.com>", "Parity Technologies <admin@parity.io>"] | |||
description = "Implementation of the multiaddr format" | |||
edition = "2018" | |||
edition = "2021" | |||
rust-version = "1.59.0" |
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.
Curious, why 1.59.0
? The first version that supports the field is 1.56.0
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.
because the MSRV of multihash-v0.18
is 1.59.0
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.
Does ones MSRV need to be >=
to ones dependencie's MSRV?
@@ -17,7 +18,7 @@ arrayref = "0.3" | |||
byteorder = "1.3.1" | |||
data-encoding = "2.1" | |||
multibase = "0.9.1" | |||
multihash = { version = "0.17", default-features = false, features = ["std", "multihash-impl", "identity"] } | |||
multihash = { version = "0.18", default-features = false, features = ["std", "multihash-impl", "identity"] } |
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.
This will be another breaking change across the entire Rust libp2p ecosystem. Unless this upgrade is a blocker for something, it would be nice if we could hold off releasing this until multiformats/rust-multihash#259 is actioned.
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.
We should be able to upgrade to edition 2021 without having to bump this, right?
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.
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.
#73 is also a breaking change, can we include that as-well? I don't have permissions to create a milestone in this repository but it might be worthwhile creating one so we can plan these things :)
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.
Thanks @koushiro!
@@ -17,7 +18,7 @@ arrayref = "0.3" | |||
byteorder = "1.3.1" | |||
data-encoding = "2.1" | |||
multibase = "0.9.1" | |||
multihash = { version = "0.17", default-features = false, features = ["std", "multihash-impl", "identity"] } | |||
multihash = { version = "0.18", default-features = false, features = ["std", "multihash-impl", "identity"] } |
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.
fn arbitrary<G: Gen>(g: &mut G) -> Self { | ||
let iter = (0..g.next_u32() % 128).map(|_| Proto::arbitrary(g).0); | ||
fn arbitrary(g: &mut Gen) -> Self { | ||
let iter = (0..u8::arbitrary(g) % 128).map(|_| Proto::arbitrary(g).0); |
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.
😮 change needed is a lot smaller than anticipated. Thanks.
@@ -1,7 +1,8 @@ | |||
[package] | |||
authors = ["dignifiedquire <dignifiedquire@gmail.com>", "Parity Technologies <admin@parity.io>"] | |||
description = "Implementation of the multiaddr format" | |||
edition = "2018" | |||
edition = "2021" | |||
rust-version = "1.59.0" |
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.
Does ones MSRV need to be >=
to ones dependencie's MSRV?
yes |
multihash
to v0.18.0quickcheck
to v1.0.3close #41
close #49