API Reference wasmex v0.10.0

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.

This is the entry point to support for the WebAssembly Component Model.

This represents a compiled but not yet instantiated WebAssembly component. It is analogous to a Module in core webassembly.

A GenServer wrapper for WebAssembly components. This module provides a macro to easily create GenServer-based components with wrapper functions for the exports in the WIT definition.

The component model equivalent to Wasmex.Instance

This is the component model equivalent of Wasmex.Store

An Engine which is a global context for compilation and management of Wasm modules.

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.

Configures limits to limit resource creation within a Wasmex.Store.

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

Options for preopening a directory.

Configures WASI support for a Wasmex.Store.

Configures WASI P2 support for a Wasmex.Components.Store.