#derive #open

macro open-fastrlp-derive

Procedural macros for fastrlp

1 unstable release

0.1.1 Oct 23, 2022
Download history 30347/week @ 2023-10-30 30380/week @ 2023-11-06 30411/week @ 2023-11-13 28944/week @ 2023-11-20 36372/week @ 2023-11-27 38169/week @ 2023-12-04 34904/week @ 2023-12-11 32855/week @ 2023-12-18 18952/week @ 2023-12-25 27264/week @ 2024-01-01 38666/week @ 2024-01-08 43397/week @ 2024-01-15 45874/week @ 2024-01-22 58934/week @ 2024-01-29 48476/week @ 2024-02-05 44653/week @ 2024-02-12

200,241 downloads per month
Used in 216 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
~36K SLoC