Cargo Features

[dependencies]
trevm = { version = "0.34.2", default-features = false, features = ["alloy-db", "asyncdb", "call", "concurrent-db", "estimate_gas", "secp256k1", "c-kzg", "blst", "portable", "dev", "memory_limit", "optional_balance_check", "optional_block_gas_limit", "optional_eip3607", "optional_no_base_fee", "full_env_cfg", "tracing-inspectors", "test-utils"] }
default = call, concurrent-db, estimate_gas, tracing-inspectors

These default features are set whenever trevm is added without default-features = false somewhere in the dependency tree.

Enables blst, c-kzg, portable, secp256k1 and std of revm ^34

alloy-db

Enables tokio and providers of alloy ^1.4.0

alloy:

providers

Affects db::alloy

asyncdb

Enables asyncdb of revm ^34

call default = optional_eip3607, optional_no_base_fee
concurrent-db default

Enables dashmap

Affects db::sync

estimate_gas default = optional_eip3607, optional_no_base_fee

Enables tracing

secp256k1

Enables secp256k1 of revm ^34

revm:

Precompiles features: Please look at the comments in precompile crate for more information. See comments in precompile use it with caution

c-kzg

Enables c-kzg of revm ^34

blst

Enables blst of revm ^34

revm:

blst will be enabled both for bls precompiles and for kzg precompile.

portable

Enables portable of revm ^34

revm:

Compile in portable mode, without ISA extensions.
Binary can be executed on all systems.

dev = memory_limit, optional_balance_check, optional_block_gas_limit, optional_eip3607, optional_no_base_fee
memory_limit dev?

Enables memory_limit of revm ^34

optional_balance_check dev? full_env_cfg?

Enables optional_balance_check of revm ^34

optional_block_gas_limit dev? full_env_cfg?

Enables optional_block_gas_limit of revm ^34

optional_eip3607 call dev? estimate_gas full_env_cfg?

Enables optional_eip3607 of revm ^34

optional_no_base_fee call dev? estimate_gas full_env_cfg?

Enables optional_no_base_fee of revm ^34

full_env_cfg = optional_balance_check, optional_block_gas_limit, optional_eip3607, optional_no_base_fee
tracing-inspectors default

Enables revm-inspectors ^0.34, rpc-types-trace of alloy ^1.4.0

test-utils

Enables signer-local and signers of alloy ^1.4.0, alloydb, serde-json and std of revm ^34