Cargo Features
wasmtime-cli-flags has no features set by default.
[dependencies]
wasmtime-cli-flags = { version = "26.0.1", features = ["async", "pooling-allocator", "component-model", "cache", "parallel-compilation", "logging", "cranelift", "coredump", "gc", "threads", "memory-protection-keys"] }
- async
-
wasmtime:
Enables support for "async stores" as well as defining host functions as
async fn
and calling functions asynchronously. - pooling-allocator
-
Enables pooling-allocator of wasmtime
wasmtime:
Enables support for the pooling instance allocation strategy
- component-model
-
Enables component-model of wasmtime
wasmtime:
Enables in-progress support for the component model. Note that this feature is in-progress, buggy, and incomplete. This is primarily here for internal testing purposes.
- cache
-
wasmtime:
Enables support for automatic cache configuration to be enabled in
Config
. - parallel-compilation
-
Enables rayon and parallel-compilation of wasmtime
wasmtime:
Enables parallel compilation of WebAssembly code.
- logging
-
Enables file-per-thread-logger and tracing-subscriber
- cranelift
-
wasmtime:
An on-by-default feature enabling runtime compilation of WebAssembly modules with the Cranelift compiler. Cranelift is the default compilation backend of Wasmtime. If disabled then WebAssembly modules can only be created from precompiled WebAssembly modules.
- coredump
-
wasmtime:
Enable support for generating core dumps on traps.
- gc
-
Enables wasmtime
wasmtime:
Enable support for garbage collection-related things.
This Cargo feature is required to compile or run Wasm that uses any of the following Wasm proposals:
- Reference types: https://github.com/WebAssembly/reference-types/
- Typed function references: https://github.com/WebAssembly/function-references/
- Garbage collection: https://github.com/WebAssembly/gc
When a compiler Cargo feature (
cranelift
orwinch
) is enabled, this feature gates the ability to compile Wasm that uses those proposals.When the
runtime
Cargo feature is enabled, this feature gates the ability to load and run Wasm that uses those proposals. - threads
-
wasmtime:
Enable runtime support for the WebAssembly threads proposal.
- memory-protection-keys
-
Enables memory-protection-keys of wasmtime
wasmtime:
Enables support for "memory protection keys" which can be used in conjunction with the pooling allocator on x64 to compact linear memory allocations.
wasmtime-cli-flags has 11 features without comments.