#ethereum #rlp #serialization #macros

macro alloy-rlp-derive

Derive macros for alloy-rlp

7 releases

0.3.4 Dec 22, 2023
0.3.3 Sep 23, 2023
0.3.2 Jul 26, 2023
0.2.0 Jun 23, 2023
0.1.0 Jun 13, 2023

#363 in #ethereum

Download history 5067/week @ 2023-10-30 5603/week @ 2023-11-06 5609/week @ 2023-11-13 5591/week @ 2023-11-20 7066/week @ 2023-11-27 7482/week @ 2023-12-04 8350/week @ 2023-12-11 12871/week @ 2023-12-18 11023/week @ 2023-12-25 17821/week @ 2024-01-01 25569/week @ 2024-01-08 33116/week @ 2024-01-15 31177/week @ 2024-01-22 30005/week @ 2024-01-29 29107/week @ 2024-02-05 31411/week @ 2024-02-12

123,695 downloads per month
Used in 21 crates (via alloy-rlp)

MIT/Apache

19KB
408 lines

alloy-rlp-derive

This crate provides derive macros for traits defined in alloy-rlp. See that crate's documentation for more information.

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

~345–790KB
~19K SLoC