Crate flexiber_derive

Source
Expand description

Custom derive support for the flexiber 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.

Derive Macrosยง

Decodable
Derive the Decodable trait on a struct.
Encodable
Derive the Encodable trait on a struct.