1 unstable release

0.1.1 Oct 23, 2022

#21 in #rlp

Download history 35857/week @ 2023-11-29 34806/week @ 2023-12-06 31721/week @ 2023-12-13 24603/week @ 2023-12-20 18667/week @ 2023-12-27 30994/week @ 2024-01-03 37942/week @ 2024-01-10 41512/week @ 2024-01-17 43558/week @ 2024-01-24 54034/week @ 2024-01-31 45449/week @ 2024-02-07 44474/week @ 2024-02-14 43683/week @ 2024-02-21 38450/week @ 2024-02-28 41773/week @ 2024-03-06 37713/week @ 2024-03-13

169,170 downloads per month
Used in 223 crates (via open-fastrlp)

Apache-2.0

11KB
243 lines

RLP derive crate

forked from erlier Apache licenced fastrlp-derive crate, before it changed licence to GPL.


lib.rs:

Derive macro for #[derive(RlpEncodable, RlpDecodable)].

For example of usage see ./tests/rlp.rs.

This library also supports up to 1 #[rlp(default)] in a struct, which is similar to #[serde(default)] with the caveat that we use the Default value if the field deserialization fails, as we don't serialize field names and there is no way to tell if it is present or not.

Dependencies

~1.5MB
~35K SLoC