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
-
wasmtime:
Enables support for "async stores" as well as defining host functions as
async fn
and calling functions asynchronously. - profiling
-
wasmtime:
Enables support for profiling guest modules.
- cache
-
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
-
wasmtime:
Enable support for generating core dumps on traps.
- addr2line
- demangle
-
wasmtime:
Enables support for demangling WebAssembly function names at runtime in errors such as backtraces.
- threads
-
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:
- 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.
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.