1#![cfg_attr(not(feature = "std"), no_std)]
2
3#[cfg(feature = "alloc")]
4extern crate alloc;
5
6mod decode;
7mod encode;
8mod types;
9
10pub use bytes::BufMut;
11
12pub use decode::{Decodable, DecodeError, Rlp};
13pub use encode::{
14 const_add, encode_fixed_size, encode_list, length_of_length, list_length, Encodable,
15 MaxEncodedLen, MaxEncodedLenAssoc,
16};
17pub use types::*;
18
19#[cfg(feature = "derive")]
20pub use rlp_derive::{
21 RlpDecodable, RlpDecodableWrapper, RlpEncodable, RlpEncodableWrapper, RlpMaxEncodedLen,
22};