#macro-derive #rlp #field #tetsy #default #rlp-decodable #rlp-encodable

macro tetsy-rlp-derive

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

Show the crate…

5 releases

0.1.2 Jun 8, 2021
0.1.1 Feb 25, 2021
0.1.0 Feb 18, 2021
0.1.0-alpha Mar 10, 2021
0.0.1 Feb 28, 2021

#28 in #rlp

Download history 5/week @ 2024-02-25 15/week @ 2024-03-10 69/week @ 2024-03-31

84 downloads per month
Used in 38 crates (7 directly)

MIT/Apache

11KB
257 lines

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
~33K SLoC