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))]
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 bal;
17pub use bal::*;
18
19mod account;
20pub use account::*;
21
22mod block;
23pub use block::*;
24
25mod block_id;
26pub use block_id::*;
27
28mod block_hash;
29pub use block_hash::*;
30
31#[cfg(feature = "db-api")]
32mod chain;
33#[cfg(feature = "db-api")]
34pub use chain::*;
35
36mod header;
37pub use header::*;
38
39mod prune_checkpoint;
40pub use prune_checkpoint::*;
41
42mod receipts;
43pub use receipts::*;
44
45mod stage_checkpoint;
46pub use stage_checkpoint::*;
47
48mod state;
49pub use state::*;
50
51mod storage;
52pub use storage::*;
53
54mod transactions;
55pub use transactions::*;
56
57mod trie;
58pub use trie::*;
59
60mod chain_info;
61pub use chain_info::*;
62
63#[cfg(feature = "db-api")]
64mod database_provider;
65#[cfg(feature = "db-api")]
66pub use database_provider::*;
67
68pub mod noop;
69
70#[cfg(feature = "db-api")]
71mod history;
72#[cfg(feature = "db-api")]
73pub use history::*;
74
75#[cfg(feature = "db-api")]
76mod hashing;
77#[cfg(feature = "db-api")]
78pub use hashing::*;
79
80#[cfg(feature = "db-api")]
81mod stats;
82#[cfg(feature = "db-api")]
83pub use stats::*;
84
85mod primitives;
86pub use primitives::*;
87
88mod block_indices;
89pub use block_indices::*;
90
91#[cfg(feature = "std")]
92mod block_writer;
93#[cfg(feature = "std")]
94pub use block_writer::*;
95
96mod state_writer;
97pub use state_writer::*;
98
99mod header_sync_gap;
100pub use header_sync_gap::HeaderSyncGapProvider;
101
102#[cfg(feature = "db-api")]
103pub mod metadata;
104#[cfg(all(feature = "db-api", feature = "std"))]
105pub use metadata::StoragePath;
106#[cfg(feature = "db-api")]
107pub use metadata::{MetadataProvider, MetadataWriter, StorageSettingsCache};
108#[cfg(feature = "db-api")]
109pub use reth_db_api::models::StorageSettings;
110
111mod full;
112pub use full::*;
113
114pub mod macros;