Cargo Features
[dependencies]
wasmer-compiler = { version = "5.0.2", default-features = false, features = ["translator", "std", "compiler", "wasmer-artifact-create", "static-artifact-create", "core", "enable-serde", "artifact-size"] }
- default = std
-
The
std
feature is set by default wheneverwasmer-compiler
is added without
somewhere in the dependency tree.default-features = false - translator compiler? = wasmparser
-
This feature is for compiler implementors, it enables using
Compiler
andCompilerConfig
, as well as the included wasmparser. Disable this feature if you just want a headless engine. - std default
-
Enables std of wasmer-types
- compiler = translator
- wasmer-artifact-load wasmer-artifact-create
- static-artifact-load static-artifact-create
- core = hashbrown
-
Enables core of wasmer-types
- enable-serde = serde, serde_bytes
-
Enables enable-serde of wasmer-types
- artifact-size
-
Enables loupe
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.
- wasmparser translator?
-
Enables wasmparser ^0.216.0
- hashbrown core?
-
Enables hashbrown ^0.11
- serde enable-serde?
- serde_bytes enable-serde?