Skip to content

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.

@Xanewok Xanewok requested review from ascjones, coriolinus and ordian July 2, 2021 14:31
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.

@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.

4 participants