Cargo Features

[dependencies]
namada_vm = { version = "0.47.2", default-features = false, features = ["wasm-runtime", "testing"] }
default = wasm-runtime

The wasm-runtime feature is set by default whenever namada_vm is added without default-features = false somewhere in the dependency tree.

wasm-runtime default = parity-wasm, rayon, wasm-instrument, wasmer, wasmer-cache, wasmer-compiler-singlepass, wasmer-vm

Affects host_env::TxCtx.vp_wasm_cache, host_env::TxCtx.tx_wasm_cache, host_env::VpCtx.vp_wasm_cache, namada_vm::wasm

testing = tempfile

Enables testing of namada_account and namada_core

namada_core:

for tests and test utilities

Affects host_env::testing, memory::testing

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

parity-wasm wasm-runtime
rayon wasm-runtime

Enables rayon =1.5.3

tempfile testing?
wasm-instrument wasm-runtime
wasmer wasm-runtime

Enables wasmer ^4.3.5

wasmer-cache wasm-runtime

Enables wasmer-cache ^4.3.5

wasmer-compiler-singlepass wasm-runtime

Enables wasmer-compiler-singlepass ^4.3.5

wasmer-vm wasm-runtime

Enables wasmer-vm ^4.3.5