reth_storage_api/lib.rs
1//! Collection of traits and types for common storage access.
2
3#![doc(
4 html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",
5 html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256",
6 issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/"
7)]
8#![cfg_attr(not(test), warn(unused_crate_dependencies))]
9#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
10#![cfg_attr(not(feature = "std"), no_std)]
11
12extern crate alloc;
13
14// Re-export used error types.
15pub use reth_storage_errors as errors;
16mod account;
17pub use account::*;
18
19mod block;
20pub use block::*;
21
22mod block_id;
23pub use block_id::*;
24
25mod block_hash;
26pub use block_hash::*;
27
28#[cfg(feature = "db-api")]
29mod chain;
30#[cfg(feature = "db-api")]
31pub use chain::*;
32
33mod header;
34pub use header::*;
35
36mod prune_checkpoint;
37pub use prune_checkpoint::*;
38
39mod receipts;
40pub use receipts::*;
41
42mod stage_checkpoint;
43pub use stage_checkpoint::*;
44
45mod state;
46pub use state::*;
47
48mod storage;
49pub use storage::*;
50
51mod transactions;
52pub use transactions::*;
53
54mod trie;
55pub use trie::*;
56
57mod chain_info;
58pub use chain_info::*;
59
60#[cfg(feature = "db-api")]
61mod database_provider;
62#[cfg(feature = "db-api")]
63pub use database_provider::*;
64
65pub mod noop;
66
67#[cfg(feature = "db-api")]
68mod history;
69#[cfg(feature = "db-api")]
70pub use history::*;
71
72#[cfg(feature = "db-api")]
73mod hashing;
74#[cfg(feature = "db-api")]
75pub use hashing::*;
76
77#[cfg(feature = "db-api")]
78mod stats;
79#[cfg(feature = "db-api")]
80pub use stats::*;
81
82mod primitives;
83pub use primitives::*;
84
85mod block_indices;
86pub use block_indices::*;
87
88mod block_writer;
89pub use block_writer::*;
90
91mod state_writer;
92pub use state_writer::*;
93
94mod header_sync_gap;
95pub use header_sync_gap::HeaderSyncGapProvider;
96
97mod full;
98pub use full::*;