Skip to main content

Module generator

Module generator 

Source
Expand description

Internal generators for modifying and stitching Wasm structures.

Modules§

abi_connect
Module for ABI connection generation and overrides.
anonymous
Utilities for handling anonymous and generic WASM rewrites. If <anonymous> is specified, and there is only one target WASM, it will be automatically assigned.
check
Type-checking routines for imported/exported functions.
debug
Internal debug formatting and trace generators.
memory
Generates and bridges memory copy, trap, and related VFS interactions.
patch_component
Routines for stripping or patching unused WASM components.
producer
Embeds module metadata.
shared_global
Low-level multi-threading global locks and shared allocations.
special_func
Bridges custom initializers, _start, main_void, and reset routines.
start_section
Handles re-writing of the WASM start section routines.
threads
Internal logic for rewriting WASI threads spawn imports to the VFS.
wrap_unreachable
Handles logic for rewriting unreachable instructions to prevent Wasm execution traps.

Structs§

ComponentCtx
Sub-context for extracting and storing component variables during execution.
ComponentCtxVisitor
A generator acting as a visitor that propagates component contextual data.
ComponentRunner
A runner that coordinates the generation of a WebAssembly component.
GeneratorCtx
Represents the generation context, holding configuration arguments and targeted module info.
GeneratorRunner
Coordinates iterating over registered generators and merging external module logic into the VFS.
ModuleExternal
Stores the identity of an external loaded Wasm target.

Enums§

WasmPath
Represents the resolution state and file format targeting for manipulating WebAssembly modules intelligently.

Traits§

Generator
Defines the core trait for WASM transformations, hooks, and component optimizations over the build lifecycle.

Functions§

merge
Coordinates the underlying binary wasm-merge utility invocations to bundle outputs physically.