Cargo Features
[dependencies]
revm = { version = "21.0.0", default-features = false, features = ["std", "hashbrown", "serde", "asm-keccak", "asyncdb", "arbitrary", "alloydb", "serde-json", "dev", "memory_limit", "optional_balance_check", "optional_block_gas_limit", "optional_eip3607", "optional_no_base_fee", "secp256k1", "c-kzg", "kzg-rs", "blst", "secp256r1", "bn", "portable"] }
- default = blst, c-kzg, portable, secp256k1, std
-
These default features are set whenever
revm
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of revm-interpreter, revm-precompile, revm-primitives, and revm-state
revm-interpreter:
revm
and std of revm-bytecode, revm-context, revm-context-interface, revm-database, revm-database-interface, revm-handler, and revm-inspector
revm-inspector:
Preserve order of json field
- hashbrown
-
Enables hashbrown of revm-interpreter and revm-precompile
- serde serde-json?
-
Enables serde of revm-bytecode, revm-context, revm-context-interface, revm-database, revm-database-interface, revm-handler, revm-inspector, revm-interpreter, revm-primitives, and revm-state
- asm-keccak
-
Enables asm-keccak of revm-primitives
- asyncdb
-
Enables asyncdb of revm-database-interface
- arbitrary
-
Enables arbitrary of revm-primitives
- alloydb
-
Enables alloydb inside database crate
Enables alloydb of revm-database
- serde-json = serde
-
Enables serde-json inside inspector crate
Enables serde-json of revm-inspector
- dev = memory_limit, optional_balance_check, optional_block_gas_limit, optional_eip3607, 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_no_base_fee dev?
-
Enables optional_no_base_fee of revm-context
- secp256k1 default
-
Precompiles features See comments in
precompile
Enables secp256k1 of revm-precompile
- c-kzg default
-
kzg-rs
is not audited but useful forno_std
environment, use it with causing and default toc-kzg
if possible.Enables c-kzg of revm-precompile
- kzg-rs
-
Enables kzg-rs of revm-precompile
revm-precompile:
kzg-rs
is not audited but useful forno_std
environment, use it with causing and default toc-kzg
if possible. - blst default
-
Enables blst of revm-precompile
revm-precompile:
Enables the blst implementation of the BLS12-381 precompile.
- secp256r1
-
Enables secp256r1 of revm-precompile
revm-precompile:
Enables the p256verify precompile.
- bn
-
Enables bn of revm-precompile
revm-precompile:
Enables the substrate implementation of eip1962
- portable default
-
Compile in portable mode, without ISA extensions.
Binary can be executed on all systems.Enables portable of revm-precompile