Cargo Features

[dependencies]
metered_wasmi = { version = "0.5.4", default-features = false, features = ["std", "core", "vec_memory"] }
default = std

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

std default

Disable for no_std support

Enables std of num-rational ^0.2.2, num-traits, parity-wasm ^0.31, and wasmi-validation ^0.1

core = libm, vec_memory

Enable for no_std support

Enables core of wasmi-validation ^0.1

vec_memory core?

Enforce using the linear memory implementation based on Vec instead of mmap on unix systems.

Useful for tests and if you need to minimize unsafe usage at the cost of performance on some workloads.

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.

libm core?

Enables libm ^0.1.2