Cargo Features
[dependencies]
gwasmi_core = { version = "0.12.0", default-features = false, features = ["std", "virtual_memory"] }
- default = std
-
The
std
feature is set by default whenevergwasmi_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 and 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.