Cargo Features

wasmtime-cli-flags has no features set by default.

[dependencies]
wasmtime-cli-flags = { version = "30.0.0", features = ["async", "pooling-allocator", "component-model", "component-model-async", "cache", "parallel-compilation", "logging", "cranelift", "coredump", "gc", "gc-drc", "gc-null", "threads", "memory-protection-keys", "pulley"] }
async

Enables async of wasmtime

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.

component-model-async

Enables component-model-async of wasmtime

wasmtime:

Enables support for the Component Model Async ABI, along with future, stream, and error-context types.

cache

Enables cache of wasmtime

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

Enables cranelift of wasmtime

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

Enables coredump of wasmtime

wasmtime:

Enable support for generating core dumps on traps.

gc gc-drc? gc-null?

Enables gc of 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:

When a compiler Cargo feature (cranelift or winch) 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.

You can additionally configure which GC implementations are enabled via the gc-drc and gc-null features.

gc-drc = gc

Enables gc-drc of wasmtime

wasmtime:

Enable the deferred reference counting garbage collector.

gc-null = gc

Enables gc-null of wasmtime

wasmtime:

Enable the null garbage collector.

threads

Enables threads of wasmtime

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.

pulley

Enables pulley of wasmtime

wasmtime:

Enables support for Pulley, the WebAssembly interpreter. When paired with the cranelift feature, the compiler backends for the pulley32 and pulley64 targets will be available. When paired with the runtime feature, the Pulley interpreter will be built into the runtime and you can interpret WebAssembly modules that have been compiled to Pulley bytecode.

wasmtime-cli-flags has 15 features without comments.