1 unstable release

0.1.1 Oct 23, 2022

#20 in #rlp

Download history 45610/week @ 2024-03-14 44229/week @ 2024-03-21 41004/week @ 2024-03-28 42166/week @ 2024-04-04 40723/week @ 2024-04-11 40144/week @ 2024-04-18 37246/week @ 2024-04-25 37000/week @ 2024-05-02 38451/week @ 2024-05-09 36151/week @ 2024-05-16 33398/week @ 2024-05-23 36727/week @ 2024-05-30 39543/week @ 2024-06-06 40910/week @ 2024-06-13 42778/week @ 2024-06-20 31985/week @ 2024-06-27

161,849 downloads per month
Used in 272 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
~37K SLoC