ser_der
Newtypes for the der crate to allow for serde de-/serialization.
Usage
Add this to your Cargo.toml:
[]
= { = "0", = ["alloc"] } # Features should match the ones of the der crate
= { = "0", = ["alloc"] }
= { = "1", = ["derive"] }
You can then use the newtypes offered by this crate to de-/serialize DER-encoded data structures using serde.
All newtypes implement Deref, DerefMut, From<[Newtype]> for [Type] and From<[Type]> for [Newtype] to the underlying der type.
Upstreaming to der
This crate is a temporary solution until the der crate supports serde de-/serialization. The plan is to upstream the serde support to the der crate.