#![doc = include_str!("../README.md")]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/alloy.jpg",
html_favicon_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/favicon.ico"
)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#[macro_use]
#[allow(unused_imports)]
extern crate alloc;
mod decode;
pub use decode::{decode_exact, Decodable, Rlp};
mod error;
pub use error::{Error, Result};
mod encode;
#[cfg(feature = "arrayvec")]
pub use encode::encode_fixed_size;
pub use encode::{
encode, encode_iter, encode_list, length_of_length, list_length, Encodable, MaxEncodedLen,
MaxEncodedLenAssoc,
};
mod header;
pub use header::{Header, PayloadView};
#[doc(no_inline)]
pub use bytes::{self, Buf, BufMut, Bytes, BytesMut};
#[cfg(feature = "derive")]
#[doc(inline)]
pub use alloy_rlp_derive::{
RlpDecodable, RlpDecodableWrapper, RlpEncodable, RlpEncodableWrapper, RlpMaxEncodedLen,
};
pub const EMPTY_STRING_CODE: u8 = 0x80;
pub const EMPTY_LIST_CODE: u8 = 0xC0;
#[doc(hidden)]
#[deprecated(since = "0.3.0", note = "use `Error` instead")]
pub type DecodeError = Error;
#[doc(hidden)]
pub mod private {
pub use core::{
default::Default,
option::Option::{self, None, Some},
result::Result::{self, Err, Ok},
};
}