Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Feb 1, 2022

The proc macro previously derived the Decode trait, which is not composable with context-specific fields, which depend on the DecodeValue trait in order to support IMPLICIT fields.

This commit changes the custom derive macro for Sequence to produce a DecodeValue impl instead of Decode. This leverages the newly introduced SequenceRef type from #374.

The proc macro previously derived the `Decode` trait, which is not
composable with context-specific fields, which depend on the
`DecodeValue` trait in order to support IMPLICIT fields.

This commit changes the custom derive macro for `Sequence` to produce
a `DecodeValue` impl instead of `Decode`. This leverages the newly
introduced `SequenceRef` type from #374.
@tarcieri tarcieri merged commit e65c4aa into master Feb 1, 2022
@tarcieri tarcieri deleted the der_derive/change-derived-sequence-decoder-to-decodevalue branch February 1, 2022 17:27
carl-wallace added a commit to carl-wallace/formats that referenced this pull request Feb 1, 2022
… Decodable (RustCrypto#375) and remove custom impls on Certificate, NameConstraints and CertPathControls.
@tarcieri tarcieri mentioned this pull request May 8, 2022
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.

2 participants