#crypto #encodable #decodable #tlv #fields #set #simple-tlv

macro no-std simple-tlv_derive

Procedural macros to derive Decodable and Encodable from simple-tlv

1 unstable release

0.1.0 Feb 19, 2021

#8 in #encodable


Used in simple-tlv

Apache-2.0 OR MIT

15KB
258 lines

Custom derive support for the simple-tlv crate

With #[tlv(slice)] set, Encodable should work for fields implementing AsRef<[u8]>, and Decodable should work for fields implementing TryFrom<[u8]>, even if the field is not Decodable or Encodable.

Dependencies

~1.5MB
~38K SLoC