Skip to main content

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
29pub mod provider;
30
31#[cfg(feature = "metrics")]
32mod metrics;
33
34#[cfg(feature = "trie-debug")]
35pub mod debug_recorder;
36#[cfg(feature = "trie-debug")]
37use serde_json as _;
38
39/// Re-export sparse trie error types.
40pub mod errors {
41    pub use reth_execution_errors::{
42        SparseStateTrieError, SparseStateTrieErrorKind, SparseStateTrieResult, SparseTrieError,
43        SparseTrieErrorKind, SparseTrieResult,
44    };
45}