#crypto #encodable #decodable #fields #slice #tlv #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 225/week @ 2024-07-26 78/week @ 2024-08-02 147/week @ 2024-08-09 57/week @ 2024-08-16 58/week @ 2024-08-23 63/week @ 2024-08-30 53/week @ 2024-09-06 58/week @ 2024-09-13 70/week @ 2024-09-20 149/week @ 2024-09-27 170/week @ 2024-10-04 176/week @ 2024-10-11 339/week @ 2024-10-18 150/week @ 2024-10-25 85/week @ 2024-11-01 83/week @ 2024-11-08

707 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
~39K SLoC