-
Notifications
You must be signed in to change notification settings - Fork 235
Update scale-info to v2 #626
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
Conversation
jFYI, this is a breaking change that will cascade like #623 |
@wigy-opensource-developer As @ordian points out, we'll need a major bump of |
writing comments on Github at the same time is fun :) |
@@ -15,7 +15,8 @@ impl-serde = { version = "0.3.1", path = "impls/serde", default-features = false | |||
impl-codec = { version = "0.6.0", path = "impls/codec", default-features = false, optional = true } | |||
impl-num-traits = { version = "0.1.0", path = "impls/num-traits", default-features = false, optional = true } | |||
impl-rlp = { version = "0.3", path = "impls/rlp", default-features = false, optional = true } | |||
scale-info-crate = { package = "scale-info", version = ">=0.9, <2", features = ["derive"], default-features = false, optional = true } | |||
# See https://github.com/paritytech/parity-common/pull/556#issuecomment-872127496 why this is here: |
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 link doesn't explain why this is here, which is I think self-explanatory (it's a feature)
@@ -15,7 +15,8 @@ impl-serde = { version = "0.3.1", path = "impls/serde", default-features = false | |||
impl-codec = { version = "0.6.0", path = "impls/codec", default-features = false, optional = true } | |||
impl-num-traits = { version = "0.1.0", path = "impls/num-traits", default-features = false, optional = true } | |||
impl-rlp = { version = "0.3", path = "impls/rlp", default-features = false, optional = true } | |||
scale-info-crate = { package = "scale-info", version = ">=0.9, <2", features = ["derive"], default-features = false, optional = true } | |||
# See https://github.com/paritytech/parity-common/pull/556#issuecomment-872127496 why this is here: | |||
scale-info-crate = { package = "scale-info", version = "2", features = ["derive"], default-features = false, optional = true } |
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.
Ok, let's pull this YOLO trick once again
scale-info-crate = { package = "scale-info", version = "2", features = ["derive"], default-features = false, optional = true } | |
scale-info-crate = { package = "scale-info", version = ">=0.9, <3", features = ["derive"], default-features = false, optional = true } |
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.
<3
you meant? Also, isn't it better to exclude 0.9 and 1.0.0 now?
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.
With this we'd only need a minor release of primitive-types
yes?
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.
Yes, I meant <3 and yes, this would be a patch release. And we don't need to release anything else. Only update substrate/polkadot/cumulus
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.
Okay, I get it. Although MSRV and edition 2021 is already in the Cargo.toml which technically makes it a major release, 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.
We already published that changes in #623.
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.
Could you bump the version in this PR and update the change as well please?
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.
Ah, wait, scale-info also used in ethereum-types. I'm afraid, there's no getting away with breaking release then (sorry).
We can do the same trick with ethereum-types and ethbloom.
closing in favor of #627 |
Wow. Thanks a lot. I had to be AFK for 3 hours and you took the bullet for me. |
We should get to a release of primitive-types that could be included in a Substrate version that depends on Scale v3. Yeah 😄