API Reference wasmex v0.8.0

modules

Modules

Wasmex is a fast and secure WebAssembly and WASI runtime for Elixir. It enables lightweight WebAssembly containers to be run in your Elixir backend. This is the main module, providing most of the needed API to run WASM binaries.

Instantiates a WASM module and allows calling exported functions on it.

Memory is a linear array of bytes to store WASM values. The Memory module provides functions to read and write to this array.

A compiled WebAssembly module.

A Pipe is a memory buffer that can be used in exchange for a WASM file.

A Store is a collection of WASM instances and host-defined state.

Either a Wasmex.Store or "Caller" for imported functions.

Options for preopening a directory.

Configures WASI support for a Wasmex.Store.