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

Bump version to 2.2.0 and hide MaxEncodedLen behind an additional crate feature #282

Merged
merged 4 commits into from
Jul 2, 2021

Conversation

Xanewok
Copy link
Contributor

@Xanewok Xanewok commented Jul 2, 2021

Implemented the scheme outlined in paritytech/parity-common#552 (comment).

This avoids the required otherwise cascade bumps across https://github.com/paritytech/parity-common which is something that I didn't consider at first due to the requirement of explicitly selecting pre-releases. Thanks to that, other dependencies can keep on depending on ^2 or ^2.1 versions of the codec, while the only crate outside of the Substrate workspace, which is primitive-types -> impl-codec, can just opt-in to max-encoded-len and directly implement the new trait. Since the trait definition is somewhat stable and FWIU only related new attributes require some more polish, this will probably not cause any breakages.

Tested locally paritytech/substrate#9163 and it's looking good so far.

Copy link
Contributor

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

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

Some nits, but a good idea to un-stick the process.

src/lib.rs Show resolved Hide resolved
src/max_encoded_len.rs Outdated Show resolved Hide resolved
@Xanewok Xanewok merged commit d889b62 into master Jul 2, 2021
@Xanewok Xanewok deleted the igor-new-max-encoded-len-trait branch July 2, 2021 15:47
@Xanewok
Copy link
Contributor Author

Xanewok commented Jul 2, 2021

Thanks for taking a look! I'll publish these crates now

@KiChjang
Copy link
Contributor

KiChjang commented Jul 6, 2021

Any chance to also make changes to CHANGELOG.md at the repo root?

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.

3 participants