reth_trie_sparse/lib.rs
1//! The implementation of sparse MPT.
2
3#![cfg_attr(not(test), warn(unused_crate_dependencies))]
4#![cfg_attr(not(feature = "std"), no_std)]
5
6extern crate alloc;
7
8#[cfg(feature = "std")]
9mod state;
10#[cfg(feature = "std")]
11pub use state::*;
12
13#[cfg(feature = "std")]
14mod trie;
15#[cfg(feature = "std")]
16pub use trie::*;
17
18mod traits;
19pub use traits::*;
20
21#[cfg(feature = "std")]
22mod arena;
23#[cfg(feature = "std")]
24pub use arena::*;
25
26#[cfg(feature = "metrics")]
27mod metrics;
28
29#[cfg(feature = "trie-debug")]
30pub mod debug_recorder;
31#[cfg(feature = "trie-debug")]
32use serde_json as _;
33
34/// Re-export sparse trie error types.
35pub mod errors {
36 pub use reth_execution_errors::{
37 SparseStateTrieError, SparseStateTrieErrorKind, SparseStateTrieResult, SparseTrieError,
38 SparseTrieErrorKind, SparseTrieResult,
39 };
40}