Cargo Features
wasmtime-cli-flags has no features set by default.
[dependencies]
wasmtime-cli-flags = { version = "20.0.0", features = ["pooling-allocator", "component-model", "cache", "parallel-compilation", "logging", "cranelift", "coredump", "gc", "threads"] }
- pooling-allocator
- 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.
wasmtime-cli-flags has 9 features without comments.