Cargo Features

wasmtime-runtime has no features set by default.

[dependencies]
wasmtime-runtime = { version = "20.0.2", features = ["async", "pooling-allocator", "component-model", "wmemcheck", "debug-builtins", "gc", "coredump", "threads"] }
async

Enables wasmtime-fiber =20.0.2

Affects gc_runtime::collect_async, pooling::InstanceLimits.total_stacks, allocator::InstanceAllocatorImpl.allocate_fiber_stack, allocator::InstanceAllocatorImpl.deallocate_fiber_stack, vm::commit_stack_pages, vm::reset_stack_pages_to_zero

pooling-allocator

Affects gc_runtime::GcHeap.reset, vm::commit_table_pages, vm::decommit_table_pages, vm::commit_table_pages, vm::decommit_table_pages, vm::commit_table_pages, vm::decommit_table_pages, vm::commit_table_pages, vm::decommit_table_pages, vm::commit_stack_pages, vm::reset_stack_pages_to_zero

component-model

Enables encoding_rs, component-model of wasmtime-environ =20.0.2

Affects allocator::InstanceAllocatorImpl.validate_component_impl, allocator::InstanceAllocator.validate_component, wasmtime-runtime::component, wasmtime-runtime::Store.component_calls

wmemcheck

Enables wasmtime-wmemcheck =20.0.2

debug-builtins

Enables wasmtime-jit-debug =20.0.2

Affects wasmtime-runtime::debug_builtins

gc

Enables gc of wasmtime-environ =20.0.2

Affects pooling::InstanceLimits.total_gc_heaps, allocator::InstanceAllocatorImpl.allocate_gc_heap, allocator::InstanceAllocatorImpl.deallocate_gc_heap

coredump

Enables wasm-encoder ^0.202.0

threads

Enables threads of wasmtime-environ =20.0.2