Skip to main content

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))]
10#![cfg_attr(not(feature = "std"), no_std)]
11
12#[cfg(any(test, feature = "test-utils", feature = "witness"))]
13extern crate alloc;
14
15/// Cache database that reads from an underlying [`DatabaseRef`].
16/// Database adapters for payload building.
17pub mod cached;
18
19/// Contains glue code for integrating reth database into revm's [Database].
20pub mod database;
21
22pub use revm::{database as db, inspector};
23
24/// Common test helpers
25#[cfg(any(test, feature = "test-utils"))]
26pub mod test_utils;
27
28// Convenience re-exports.
29pub use revm::{self, database::State, *};
30
31/// Helper types for execution witness generation.
32#[cfg(feature = "witness")]
33pub mod witness;