#crypto #flexiber #flexiber-derive

macro no-std flexiber_derive

Procedural macros to derive Decodable and Encodable from flexiber

2 releases

0.1.3 Jan 24, 2025
0.1.0 Nov 20, 2021

#118 in #crypto

Download history 147/week @ 2025-01-15 272/week @ 2025-01-22 78/week @ 2025-01-29 125/week @ 2025-02-05 139/week @ 2025-02-12 134/week @ 2025-02-19 236/week @ 2025-02-26 358/week @ 2025-03-05 92/week @ 2025-03-12 309/week @ 2025-03-19 72/week @ 2025-03-26 32/week @ 2025-04-02 39/week @ 2025-04-09 77/week @ 2025-04-16 64/week @ 2025-04-23 70/week @ 2025-04-30

255 downloads per month
Used in 6 crates (via flexiber)

Apache-2.0 OR MIT

30KB
482 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.


flexiber

Encoding and decoding of BER-TLV as described in ISO 7816-4, without allocations.

Follows the approach taken in der, and then in simple-tlv.

License

flexiber is licensed under either of Apache License, Version 2.0 or MIT License at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~265–710KB
~16K SLoC