RustCrypto / formats

Cryptography-related format encoders/decoders: DER, PEM, PKCS, PKIX
229 stars 122 forks source link

tls_codec: Introduce helper macro for conditional deserialization #1330

Closed kkohbrok closed 6 months ago

kkohbrok commented 6 months ago

This PR introduces the #[tls_codec(cd_field)] macro. It can be used alongside the #[conditionally_deserializable] macro to mark fields that are also conditionally deserializable and that internally need to have the const generic added.

kkohbrok commented 6 months ago

Sorry, I was missing some feature-gating. It should compile now.