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

Adds support for custom where bounds #263

Merged
merged 3 commits into from
Apr 6, 2021
Merged

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Apr 6, 2021

The user can now specify a custom where bound when using the derive
macros:

  • #[codec(encode_bound(T: Encode))] for Encode
  • #[codec(decode_bound(T: Encode))] for Decode

If nothing is specified (encode_bound()) the where bounds will be empty.

The user can now specify a custom where bound when using the derive
macros:

- `#[codec(encode_bound(T: Encode))]` for `Encode`
- `#[codec(decode_bound(T: Encode))]` for `Decode`

If nothing is specified (`encode_bound()`) the where bounds will be empty.
@bkchr bkchr requested a review from gui1117 April 6, 2021 14:31
@apopiak
Copy link

apopiak commented Apr 6, 2021

This sounds like a feature additoin -> minor version increase to me?

derive/Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
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