Cargo Features

[dependencies]
wasmi = { version = "0.32.0-beta.16", default-features = false, features = ["std", "no-hash-maps"] }
default = std

The std feature is set by default whenever wasmi is added without default-features = false somewhere in the dependency tree.

std default

Enables std of arrayvec, num-traits, spin, wasmi_collections, wasmi_core, and wasmparser-nostd

spin:

Enables std-only features such as yield-relaxing.

no-hash-maps

Tells the wasmi crate to avoid using hash based data structures.

Some embedded environments cannot provide a random source which is required to properly initialize hashmap based data structures for resilience against malious actors that control their inputs.

An example of such an environment is wasm32-unknown-unknown.

Enables no-hash-maps of wasmi_collections