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
8mod state;
9pub use state::*;
10
11mod lfu;
12
13mod trie;
14pub use trie::*;
15
16mod traits;
17pub use traits::*;
18
19#[cfg(feature = "std")]
20mod arena;
21#[cfg(feature = "std")]
22pub use arena::*;
23
24mod parallel;
25pub use parallel::*;
26
27mod lower;
28
29#[cfg(feature = "metrics")]
30mod metrics;
31
32#[cfg(feature = "trie-debug")]
33pub mod debug_recorder;
34#[cfg(feature = "trie-debug")]
35use serde_json as _;
36
37/// Re-export sparse trie error types.
38pub mod errors {
39 pub use reth_execution_errors::{
40 SparseStateTrieError, SparseStateTrieErrorKind, SparseStateTrieResult, SparseTrieError,
41 SparseTrieErrorKind, SparseTrieResult,
42 };
43}