#crypto #encodable #decodable #fields #tlv #slice #flexiber

macro no-std flexiber_derive

Procedural macros to derive Decodable and Encodable from flexiber

1 unstable release

0.1.0 Nov 20, 2021

#7 in #encodable

Download history 46/week @ 2024-02-10 65/week @ 2024-02-17 78/week @ 2024-02-24 87/week @ 2024-03-02 64/week @ 2024-03-09 79/week @ 2024-03-16 144/week @ 2024-03-23 237/week @ 2024-03-30 172/week @ 2024-04-06 185/week @ 2024-04-13 206/week @ 2024-04-20 66/week @ 2024-04-27 89/week @ 2024-05-04 102/week @ 2024-05-11 112/week @ 2024-05-18 116/week @ 2024-05-25

433 downloads per month
Used in 5 crates (via flexiber)

Apache-2.0 OR MIT

25KB
478 lines

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.

Dependencies

~1.5MB
~37K SLoC