Cargo Features

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

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

Enables async of wasmtime

wasmtime:

Enables support for "async stores" as well as defining host functions as async fn and calling functions asynchronously.

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 ^0.10

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

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.

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