-
Notifications
You must be signed in to change notification settings - Fork 244
primitive-types/impl-codec: Bump to include new parity_scale_codec::MaxEncodedLen impls
#552
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
primitive-types/Cargo.toml
Outdated
| [package] | ||
| name = "primitive-types" | ||
| version = "0.9.0" | ||
| version = "0.9.1" |
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.
unfortunately, updating scale-info is a breaking change, so it has to 0.10.0, which will result in major bump in most of the crates in the workspace, sorry about that :/
|
Hm, I'm beginning to question our approach of using a release candidate of @coriolinus do you think we'll experiment with the newly introduced I'm open to suggestions because I'm not sure what should be the correct way forward. |
|
Re breaking versions cascading, see #556 (comment) |
Yes exactly, if there's a pre-release requirement for a dependency then we should really do a pre-release here, as I did in
Not sure exactly what the goal is, but could you somehow use a "local registry source" for the experimentation and just do "releases" there of all the crates in the tree which depend on |
Context
To give more context on the rationale, we want to unbreak release checking process in Substrate in paritytech/substrate#9140 and paritytech/substrate#9163. While the check was broken, a new workspace-local SolutionThinking about it some more, I think that the best solution would be to actually release a 2.2 but with Since it's used pervasively, most crate dependents just care about a single The only crate apart from the Substrate ones that will be using this new trait is WDYT? cc @bkchr @shawntabrizi (discussion is somewhat scattered, sorry for the spam!) |
Sounds good to me, it will allow you to conduct the experiments without the cascading pre-release requirement which causes friction and headaches. That said there is always the danger that users will start to depend upon features even if they are advertised as |
77ebace to
721b53e
Compare
ordian
left a comment
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.
LGTM once the patch section is removed
721b53e to
bcec6eb
Compare
Sorry for the delay, missed this message somehow. The trait itself has not been substantially edited since it was first written; so far at least, there have been no issues raised which would require any changes. We updated the derive at one point, but I'm comfortable calling it stable now. |
bcec6eb to
2c90364
Compare
parity_scale_codec::MaxEncodedLen in primitive-types via impl-codec bump
|
Okay, this is now reduced to a minimum patch, which is just an The end result we're interested in is that the types defined by We could, for clarity, also bump a minor level for Can I get a re-review of this final patch? Thanks! |
dvdplm
left a comment
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.
I think a minor bump to primitive-types would be good.
parity_scale_codec::MaxEncodedLen in primitive-types via impl-codec bumpparity_scale_codec::MaxEncodedLen impls
Part of paritytech/substrate#9163.
Needs paritytech/scale-info#102 to be released first.The gist of this PR is to implement
parity_scale_codec::MaxEncodedLenfor fixed hashes as required by Substrate (and other uints, which is done for consistency) and to update the rest of the crates using the new release candidate of the SCALE codec since Cargo requires us to explicitly opt-in for the RCs.