Cargo Features
[dependencies]
casper-wasmi-core = { version = "0.3.0", default-features = false, features = ["std", "virtual_memory"] }
- default = std
-
The
std
feature is set by default whenevercasper-wasmi-core
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 downcast-rs, num-bigint-std and std of num-rational, std of num-traits
- virtual_memory = region, 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.
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.