Cargo Features

wasmtime-c-api-impl has no features set by default.

[dependencies]
wasmtime-c-api-impl = { version = "27.0.0", features = ["async", "profiling", "cache", "parallel-compilation", "wasi", "logging", "disable-logging", "coredump", "addr2line", "demangle", "threads", "gc", "gc-drc", "gc-null", "cranelift", "winch", "wat"] }
async = futures

WASMTIME_FEATURE_LIST

Enables async of wasmtime

profiling

Enables profiling of wasmtime

wasmtime:

Enables support for profiling guest modules.

cache

Enables cache of wasmtime

wasmtime:

Enables support for automatic cache configuration to be enabled in Config.

Affects config::wasmtime_config_cache_config_load

parallel-compilation

Enables parallel-compilation of wasmtime

wasmtime:

Enables parallel compilation of WebAssembly code.

Affects config::wasmtime_config_parallel_compilation_set

wasi = cap-std, tokio, wasmtime-wasi

Affects linker::wasmtime_linker_define_wasi, store::wasmtime_context_set_wasi

logging

Enables env_logger

disable-logging

Enables max_level_off of log and tracing

coredump

Enables coredump of wasmtime

wasmtime:

Enable support for generating core dumps on traps.

addr2line

Enables addr2line of wasmtime

wasmtime:

Controls whether backtraces will attempt to parse DWARF information in WebAssembly modules and components to provide filenames and line numbers in stack traces.

demangle

Enables demangle of wasmtime

wasmtime:

Enables support for demangling WebAssembly function names at runtime in errors such as backtraces.

threads

Enables threads of wasmtime

wasmtime:

Enable runtime support for the WebAssembly threads proposal.

Affects config::wasmtime_config_wasm_threads_set, sharedmemory::wasmtime_sharedmemory_new

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:

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

Enables gc-drc of wasmtime

wasmtime:

Enable the deferred reference counting garbage collector.

gc-null

Enables gc-null of wasmtime

wasmtime:

Enable the null garbage collector.

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.

Affects config::wasmtime_config_strategy_set, config::wasmtime_config_cranelift_debug_verifier_set, config::wasmtime_config_cranelift_nan_canonicalization_set, config::wasmtime_config_cranelift_opt_level_set, config::wasmtime_config_target_set, config::wasmtime_config_cranelift_flag_enable, config::wasmtime_config_cranelift_flag_set, module::wasm_module_new, module::wasm_module_validate, module::wasm_module_serialize, module::wasmtime_module_new, module::wasmtime_module_validate, module::wasmtime_module_serialize

winch

Enables winch of wasmtime

wasmtime:

Enables support for Winch, the WebAssembly baseline compiler. The Winch compiler strategy in Config will be available. It is currently in active development and shouldn't be used in production applications.

Affects config::wasmtime_config_strategy_set, config::wasmtime_config_cranelift_debug_verifier_set, config::wasmtime_config_cranelift_nan_canonicalization_set, config::wasmtime_config_cranelift_opt_level_set, config::wasmtime_config_target_set, config::wasmtime_config_cranelift_flag_enable, config::wasmtime_config_cranelift_flag_set, module::wasm_module_new, module::wasm_module_validate, module::wasm_module_serialize, module::wasmtime_module_new, module::wasmtime_module_validate, module::wasmtime_module_serialize

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.

wat implicit feature

Enables wat

Optional dependency for the wat2wasm API

cap-std wasi?

Enables cap-std

Optional dependencies for the wasi feature

tokio wasi?
wasmtime-wasi wasi?
futures async?

Enables futures

Optional dependencies for the async feature