Cargo Features
[dependencies]
metered_wasmi = { version = "0.5.4", default-features = false, features = ["std", "core", "vec_memory"] }
- default = std
-
The
stdfeature is set by default whenevermetered_wasmiis added withoutsomewhere in the dependency tree.default-features = false - 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
Vecinstead 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