reth_revm/
lib.rs

1//! Revm utils and implementations specific to reth.
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/// Cache database that reads from an underlying [`DatabaseRef`].
15/// Database adapters for payload building.
16pub mod cached;
17
18/// A marker that can be used to cancel execution.
19pub mod cancelled;
20
21/// Contains glue code for integrating reth database into revm's [Database].
22pub mod database;
23
24pub use revm_database as db;
25pub use revm_inspector as inspector;
26
27/// Common test helpers
28#[cfg(any(test, feature = "test-utils"))]
29pub mod test_utils;
30
31// Convenience re-exports.
32pub use revm::{self, database::State, *};
33
34/// Either type for flexible usage of different database types in the same context.
35pub mod either;
36
37/// Helper types for execution witness generation.
38#[cfg(feature = "witness")]
39pub mod witness;