Crate wasmtime_environ[][src]

Standalone environment for WebAssembly using Cranelift. Provides functions to translate get_global, set_global, current_memory, grow_memory, call_indirect that hardcode in the translation the base addresses of regions of memory that will hold the globals, tables and linear memories.

Structs

Compilation

The result of compiling a WebAssemby module's functions.

DataInitializer

A data initializer for linear memory.

Module

A translated WebAssembly module, excluding the function bodies and memory initializers.

ModuleEnvironment

Object containing the standalone environment information. To be passed after creation as argument to compile_module.

ModuleTranslation

The result of translating via ModuleEnvironment.

Relocation

A record of a relocation to perform.

TableElements

A WebAssembly table initializer.

Functions

compile_module

Compile the module, producing a compilation result with associated relocations.

Type Definitions

Relocations

Relocations to apply to function bodies.