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

Reexport parity-scale-codec for derive #106

Merged
merged 2 commits into from
Jun 30, 2021
Merged

Reexport parity-scale-codec for derive #106

merged 2 commits into from
Jun 30, 2021

Conversation

ascjones
Copy link
Contributor

@ascjones ascjones commented Jun 29, 2021

Fixes #68.

Rexports parity-scale-codec as scale for use in the derive macro.

@Robbepop's main issue with this was #61 (comment):

the scale-info crate works with multiple parity-scale-codec versions. So re-exporting one of the supported versions would case a lock-in and potentially a duplication of dependencies in case the scale-info user does not also use the same version.

However I believe we avoid this issue by having a suitably relaxed major version constraint on the parity-scale-codec dependency as per https://crates.io/crates/scale-info/0.7.0/dependencies.

image

Note that currently in the master branch we have restricted to a codec pre-release, but will likely loosen that back to major versions once 2.2.0 is released.

@Robbepop
Copy link
Contributor

However I believe we avoid this issue by having a suitably relaxed major version constraint on the parity-scale-codec dependency as per https://crates.io/crates/scale-info/0.7.0/dependencies.

I support this and am convinced this is the right step forward for this crate.

@ascjones ascjones merged commit f99c0d7 into master Jun 30, 2021
@ascjones ascjones deleted the aj-reexport-codec branch June 30, 2021 09:44
@ascjones ascjones mentioned this pull request Jun 30, 2021
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.

Derive requires direct dependency on parity-scale-codec
2 participants