ChasmWasiPreview1Builder

WASI Preview 1 host function installer.

Sets up WebAssembly host imports that provide the Emscripten env and WASI Preview 1 implementations.

To create a new instance, use ChasmWasiPreview1Builder().

Usage example:

// Prepare WASI host imports
val wasiImports: List<Import> = ChasmWasiPreview1Builder(store) {
host = embedderHost
}.build()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun build(moduleName: String = WasmModules.WASI_SNAPSHOT_PREVIEW1_MODULE_NAME): List<Import>