#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 115/week @ 2024-05-20 123/week @ 2024-05-27 160/week @ 2024-06-03 102/week @ 2024-06-10 206/week @ 2024-06-17 191/week @ 2024-06-24 97/week @ 2024-07-01 80/week @ 2024-07-08 87/week @ 2024-07-15 146/week @ 2024-07-22 204/week @ 2024-07-29 76/week @ 2024-08-05 138/week @ 2024-08-12 57/week @ 2024-08-19 72/week @ 2024-08-26 46/week @ 2024-09-02

321 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
~38K SLoC