Wasmtime
wasmtime::Config Class Reference

Configuration for Wasmtime. More...

#include <config.hh>

Public Member Functions

template<typename T >
void host_memory_creator (T creator)
 Configures a custom memory creator for this configuration and eventual Engine. More...
 
void pooling_allocation_strategy (const PoolAllocationConfig &config)
 Enables and configures the pooling allocation strategy. More...
 
void concurrency_support (bool enable)
 Specifies whether support for concurrent execution of WebAssembly is supported within this store. More...
 
void wasm_component_model_async (bool enable)
 Configures whether component-model async support is enabled. More...
 
void wasm_component_model_more_async_builtins (bool enable)
 Configures whether async built-in intrinsics are enabled for the component model. More...
 
void wasm_component_model_async_stackful (bool enable)
 Configures whether stackful coroutine support is enabled for async components. More...
 

Detailed Description

Configuration for Wasmtime.

This class is used to configure Wasmtime's compilation and various other settings such as enabled WebAssembly proposals.

For more information be sure to consult the rust documentation.

Member Function Documentation

◆ concurrency_support()

void wasmtime::Config::concurrency_support ( bool  enable)
inline

Specifies whether support for concurrent execution of WebAssembly is supported within this store.

For more information see the Rust documentation at https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.concurrency_support.

◆ host_memory_creator()

template<typename T >
void wasmtime::Config::host_memory_creator ( creator)
inline

Configures a custom memory creator for this configuration and eventual Engine.

This can be used to use creator to allocate linear memories for the engine that this configuration will be used for.

◆ pooling_allocation_strategy()

void wasmtime::Config::pooling_allocation_strategy ( const PoolAllocationConfig config)
inline

Enables and configures the pooling allocation strategy.

https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.allocation_strategy

◆ wasm_component_model_async()

void wasmtime::Config::wasm_component_model_async ( bool  enable)
inline

Configures whether component-model async support is enabled.

https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.wasm_component_model_async

◆ wasm_component_model_async_stackful()

void wasmtime::Config::wasm_component_model_async_stackful ( bool  enable)
inline

Configures whether stackful coroutine support is enabled for async components.

https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.wasm_component_model_async_stackful

◆ wasm_component_model_more_async_builtins()

void wasmtime::Config::wasm_component_model_more_async_builtins ( bool  enable)
inline

Configures whether async built-in intrinsics are enabled for the component model.

https://docs.wasmtime.dev/api/wasmtime/struct.Config.html#method.wasm_component_model_more_async_builtins


The documentation for this class was generated from the following file: