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

Add new top-level attribute scale_info(bounds(T: SomeTrait + OtherTrait)) #88

Merged
merged 12 commits into from
Jun 14, 2021

Conversation

dvdplm
Copy link
Contributor

@dvdplm dvdplm commented May 1, 2021

Inspired by paritytech/parity-scale-codec#263, this PR adds a #[scale_info(bounds(…))] attribute.

Closes #78

Outstanding: come up with relevant test(s).

@dvdplm dvdplm self-assigned this May 1, 2021
@dvdplm dvdplm requested a review from ascjones May 1, 2021 17:29
derive/src/lib.rs Outdated Show resolved Hide resolved
test_suite/tests/derive.rs Outdated Show resolved Hide resolved
@ascjones ascjones merged commit db886fd into master Jun 14, 2021
@ascjones ascjones deleted the dp-custom-bound branch June 14, 2021 11:52
@ascjones ascjones mentioned this pull request Jun 25, 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.

Trait bounds: derive as much as is reasonable, #[scale_info(bounds())] for the rest
2 participants