foundry_evm/lib.rs
1//! # foundry-evm
2//!
3//! Main Foundry EVM backend abstractions.
4
5#![cfg_attr(not(test), warn(unused_crate_dependencies))]
6#![cfg_attr(docsrs, feature(doc_cfg))]
7
8#[macro_use]
9extern crate tracing;
10
11pub mod executors;
12pub mod inspectors;
13
14pub use foundry_evm_core as core;
15pub use foundry_evm_core::{backend, constants, decode, evm::EvmEnv, fork, hardfork, opts, utils};
16pub use foundry_evm_coverage as coverage;
17pub use foundry_evm_fuzz as fuzz;
18pub use foundry_evm_hardforks as hardforks;
19pub use foundry_evm_traces as traces;
20
21/// Stack size of the threads that run EVM executions.
22///
23/// evm2 executes every call frame as a native recursion, so a call at the maximum depth of 1024
24/// needs several MiB of stack in debug builds, more than the default 2 MiB.
25pub const EVM_THREAD_STACK_SIZE: usize = 32 * 1024 * 1024;