Cargo Features
[dependencies]
wasmer-compiler = { version = "5.0.0", default-features = false, features = ["translator", "std", "compiler", "wasmer-artifact-create", "static-artifact-load", "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 = wasmer-object
- 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.