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...
 

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

◆ 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


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