Cargo Features
[dependencies]
casper-wasmi = { version = "0.14.0", default-features = false, features = ["std", "virtual_memory", "reduced-stack-buffer", "sign_ext"] }
- default = std
-
The
std
feature is set by default whenevercasper-wasmi
is added without
somewhere in the dependency tree.default-features = false - std default virtual_memory?
-
Use
no-default-features
for ano_std
build.Enables std of casper-wasm, casper-wasmi-core, and casper-wasmi-validation
- virtual_memory = std
-
Enables OS supported virtual memory.
Note
- This feature is only supported on 64-bit platforms. For 32-bit platforms the linear memory will fallback to using the Vec based implementation.
- The default is to fall back is an inefficient vector based implementation.
- By nature this feature requires
region
and the Rust standard library.
Enables virtual_memory of casper-wasmi-core
- reduced-stack-buffer
-
Enables reduced-stack-buffer of casper-wasm
casper-wasm:
Reduce stack usage for buffered read operations.
This feature is useful when integrating on resource constrained devices such as microcontroler where the stack size is fixed (stacks do not grow) and limited to a few (k)bytes. - sign_ext
-
Enables sign_ext of casper-wasm and casper-wasmi-validation
casper-wasm:
Sign-extension operators https://github.com/WebAssembly/sign-extension-ops/