Cargo Features

[dependencies]
revm = { version = "20.0.0-alpha.1", default-features = false, features = ["std", "hashbrown", "serde", "asm-keccak", "portable", "dev", "memory_limit", "optional_balance_check", "optional_block_gas_limit", "optional_eip3607", "optional_gas_refund", "optional_no_base_fee", "arbitrary", "test-utils", "secp256k1", "c-kzg", "kzg-rs", "blst"] }
default = blst, c-kzg, portable, secp256k1, std

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

std default

Enables std of revm-context, revm-context-interface, revm-handler, revm-interpreter, and revm-precompile

revm-interpreter:

revm

hashbrown

Enables hashbrown of revm-interpreter and revm-precompile

serde

Enables serde of revm-database-interface, revm-interpreter, and revm-primitives

asm-keccak

Enables asm-keccak of revm-primitives

portable default

Enables portable of revm-precompile

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

Enables memory_limit of revm-context and revm-interpreter

optional_balance_check dev?

Enables optional_balance_check of revm-context

optional_block_gas_limit dev?

Enables optional_block_gas_limit of revm-context

optional_eip3607 dev?

Enables optional_eip3607 of revm-context

optional_gas_refund dev?

Enables optional_gas_refund of revm-context

optional_no_base_fee dev?

Enables optional_no_base_fee of revm-context

arbitrary

Enables arbitrary of revm-primitives

test-utils
secp256k1 default

See comments in precompile

Enables secp256k1 of revm-precompile

c-kzg default

Enables c-kzg of revm-precompile

revm-precompile:

These libraries may not work on all no_std platforms as they depend on C.

Enables the KZG point evaluation precompile.

kzg-rs

kzg-rs is not audited but useful for no_std environment, use it with causing and default to c-kzg if possible.

Enables kzg-rs of revm-precompile

blst default

Enables blst of revm-precompile

revm-precompile:

Enables the BLS12-381 precompiles.