Cargo Features

[dependencies]
wasmtime-cli = { version = "27.0.0", default-features = false, features = ["all-arch", "winch", "pulley", "wmemcheck", "trace-log", "memory-protection-keys", "disable-logging", "wasi-nn", "wasi-threads", "wasi-http", "wasi-config", "wasi-keyvalue", "pooling-allocator", "component-model", "wat", "cache", "parallel-compilation", "logging", "demangle", "cranelift", "profiling", "coredump", "addr2line", "debug-builtins", "threads", "gc", "gc-drc", "gc-null", "serve", "explore", "wast", "config", "compile", "run", "completion"] }

=============================================================================

Features for the Wasmtime CLI executable

Note that many of these features are inherited from Wasmtime itself or otherwise configure the wasmtime crate's execution. Features are provided as compile-time switches to disable functionality primarily if one is interested in configuring binary size and or exploring the binary size implications of various features. Most features are enabled by default but most embeddings likely won't need all features.

When adding or removing a feature, make sure to kepe the C API in sync by modifying locations marked WASMTIME_FEATURE_LIST

default = addr2line, cache, compile, completion, component-model, config, coredump, cranelift, debug-builtins, demangle, explore, gc, gc-drc, gc-null, logging, parallel-compilation, pooling-allocator, profiling, run, serve, threads, wasi-config, wasi-http, wasi-keyvalue, wasi-nn, wasi-threads, wast, wat, winch

These default features are set whenever wasmtime-cli is added without default-features = false somewhere in the dependency tree.

Enables wrap_help of clap

all-arch

========================================
Off-by-default features

These features are off-by-default but may optionally be enabled.

Enables all-arch of wasmtime

depend again on wasmtime to activate its default features for tests

winch default

Enables winch of wasmtime

pulley

Enables pulley of wasmtime

wmemcheck

Enables wmemcheck of wasmtime

trace-log

Enables trace-log of wasmtime

memory-protection-keys

Enables memory-protection-keys of wasmtime-cli-flags

disable-logging

This feature, when enabled, will statically compile out all logging statements throughout Wasmtime and its dependencies.

Enables max_level_off of log and tracing

wasi-nn default

======================================== On-by-default features

These features are all included in the default set above and this is the internal mapping for what they enable in Wasmtime itself.

Enables wasmtime-wasi-nn

wasi-threads default = threads

Enables wasmtime-wasi-threads

wasi-http default serve = component-model

Enables hyper, tokio, and wasmtime-wasi-http

wasi-config default

Enables wasmtime-wasi-config

wasi-keyvalue default

Enables wasmtime-wasi-keyvalue

pooling-allocator default

Enables pooling-allocator of wasmtime and wasmtime-cli-flags

component-model default serve wasi-http

Enables component-model of wasmtime, wasmtime-cli-flags, and optional wasmtime-wast

wat default

Enables wat, wat of wasmtime

cache default config

Enables wasmtime-cache, cache of wasmtime-cli-flags

parallel-compilation default

Enables parallel-compilation of wasmtime-cli-flags

logging default

Enables logging of wasmtime-cli-flags

demangle default

Enables demangle of wasmtime

cranelift default compile

Enables wasmtime-cranelift, cranelift of wasmtime-cli-flags

profiling default

Enables call-hook and profiling of wasmtime

coredump default

Enables coredump of wasmtime-cli-flags

addr2line default

Enables addr2line of wasmtime

debug-builtins default

Enables debug-builtins of wasmtime

threads default wasi-threads

Enables threads of wasmtime-cli-flags

gc default gc-drc gc-null

Enables gc of wasmtime and wasmtime-cli-flags

gc-drc default = gc

Enables gc-drc of wasmtime and wasmtime-cli-flags

gc-null default = gc

Enables gc-null of wasmtime and wasmtime-cli-flags

serve default = component-model, wasi-http

CLI subcommands for the wasmtime executable. See wasmtime $cmd --help for more information on each subcommand.

Enables http and http-body-util, async of wasmtime-cli-flags

explore default

Enables tempfile and wasmtime-explorer

wast default

Enables wasmtime-wast

config default = cache
compile default = cranelift
run default

Enables wasmtime-wasi, listenfd, tokio, and wasi-common, runtime of wasmtime, async of wasmtime-cli-flags

completion default

Enables clap_complete

Affects wasmtime-cli::CompletionCommand