revm_inspector/
lib.rs

1//! Inspector is a crate that provides a set of traits that allow inspecting the EVM execution.
2//!
3//! It is used to implement tracers that can be used to inspect the EVM execution.
4//! Implementing inspection is optional and it does not effect the core execution.
5#![cfg_attr(not(test), warn(unused_crate_dependencies))]
6#![cfg_attr(not(feature = "std"), no_std)]
7
8#[cfg(not(feature = "std"))]
9extern crate alloc as std;
10
11#[cfg(all(feature = "std", feature = "serde-json"))]
12mod eip3155;
13mod gas;
14pub mod handler;
15mod inspect;
16mod inspector;
17mod mainnet_inspect;
18mod noop;
19mod traits;
20
21/// Inspector implementations.
22pub mod inspectors {
23    #[cfg(all(feature = "std", feature = "serde-json"))]
24    pub use super::eip3155::TracerEip3155;
25    pub use super::gas::GasInspector;
26}
27
28pub use handler::{inspect_instructions, InspectorHandler};
29pub use inspect::{InspectCommitEvm, InspectEvm};
30pub use inspector::*;
31pub use noop::NoOpInspector;
32pub use traits::*;