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
- 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
- disable-logging
-
Enables max_level_off of log and tracing
- coredump
-
wasmtime:
Enable support for generating core dumps on traps.
- addr2line
-
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
-
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.You can additionally configure which GC implementations are enabled via the
gc-drc
andgc-null
features. - gc-drc
-
wasmtime:
Enable the deferred reference counting garbage collector.
- gc-null
-
wasmtime:
Enable the null garbage collector.
- cranelift
-
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
-
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.