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(all(feature = "std", feature = "serde-json"))]
9mod eip3155;
10mod either;
11mod gas;
12/// Handler implementations for inspector integration.
13pub mod handler;
14mod inspect;
15mod inspector;
16mod mainnet_inspect;
17mod noop;
18mod traits;
19
20#[cfg(test)]
21mod inspector_tests;
22
23/// Inspector implementations.
24pub mod inspectors {
25    #[cfg(all(feature = "std", feature = "serde-json"))]
26    pub use super::eip3155::TracerEip3155;
27    pub use super::gas::GasInspector;
28}
29
30pub use handler::{inspect_instructions, InspectorHandler};
31pub use inspect::{InspectCommitEvm, InspectEvm};
32pub use inspector::*;
33pub use noop::NoOpInspector;
34pub use traits::*;