This crate provides Ethereum RLP (de)serialization functionality. RLP is commonly used for Ethereum EL datastructures, and its documentation can be found at ethereum.org.
We strongly recommend deriving RLP traits via the RlpEncodable
and
RlpDecodable
derive macros.
Trait methods can then be accessed via the Encodable
and Decodable
traits.
```rust
use alloy_rlp::{RlpEncodable, RlpDecodable, Decodable, Encodable};
pub struct MyStruct {
pub a: u64,
pub b: Vec
let my_struct = MyStruct { a: 42, b: vec![1, 2, 3], };
let mut buffer = Vec::
```