5 releases

0.2.0 Apr 17, 2023
0.1.5 Feb 4, 2023
0.1.4 Nov 5, 2022
0.1.3 Oct 10, 2022
0.1.0 Mar 16, 2022

#5 in #encodable

Download history 3281/week @ 2023-12-18 2216/week @ 2023-12-25 2126/week @ 2024-01-01 2358/week @ 2024-01-08 2837/week @ 2024-01-15 2704/week @ 2024-01-22 2863/week @ 2024-01-29 2907/week @ 2024-02-05 2990/week @ 2024-02-12 2453/week @ 2024-02-19 2431/week @ 2024-02-26 2500/week @ 2024-03-04 2493/week @ 2024-03-11 2525/week @ 2024-03-18 2103/week @ 2024-03-25 2857/week @ 2024-04-01

10,215 downloads per month
Used in 17 crates (via fastrlp)

MPL-2.0 license

11KB
259 lines

fastrlp

Very fast and well-tested RLP serialization library for Rust.

License

The entire code within this repository is licensed under the Mozilla Public License v2.0


lib.rs:

Derive macro for #[derive(Encodable, Decodable)].

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

~0.4–1MB
~20K SLoC