Skip to content

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

Merged
Xanewok merged 4 commits into
masterfrom
igor-new-max-encoded-len-trait
Jul 2, 2021
Merged

Bump version to 2.2.0 and hide MaxEncodedLen behind an additional crate feature#282
Xanewok merged 4 commits into
masterfrom
igor-new-max-encoded-len-trait

Conversation

@Xanewok

@Xanewok Xanewok commented Jul 2, 2021

Copy link
Copy Markdown
Contributor

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.

@Xanewok Xanewok requested review from ascjones, coriolinus and ordian July 2, 2021 14:31

@coriolinus coriolinus left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/lib.rs
Comment thread src/max_encoded_len.rs Outdated
@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

Xanewok commented Jul 2, 2021

Copy link
Copy Markdown
Contributor Author

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

@KiChjang

KiChjang commented Jul 6, 2021

Copy link
Copy Markdown
Contributor

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