Cargo Features
[dependencies]
casper-wasmi = { version = "1.0.0", default-features = false, features = ["std", "virtual_memory", "reduced-stack-buffer", "sign_ext", "call_indirect_overlong"] }
- default = std
-
The
stdfeature is set by default whenevercasper-wasmiis added withoutsomewhere in the dependency tree.default-features = false - std default virtual_memory?
-
Use
no-default-featuresfor ano_stdbuild.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
regionand 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/
- call_indirect_overlong
-
Enables call_indirect_overlong of casper-wasm
casper-wasm:
Call-indirect-overlong A subset of the reference-types feature that contains just the change to the call_indirect instruction encoding to change the zero byte to an LEB encoding which may have an overlong encoding. https://github.com/WebAssembly/reference-types/ https://github.com/WebAssembly/tool-conventions/blob/main/Lime.md