[][src]Crate wasmtime

Wasmtime's embedding API

This crate contains a high-level API used to interact with WebAssembly modules. The API here is intended to mirror the proposed WebAssembly C API, with small extensions here and there to implement Rust idioms. This crate also defines the actual C API itself for consumption from other languages.

Modules

unix

Unix-specific extension for the wasmtime crate.

Structs

Caller

A structure representing the caller's context when creating a function via Func::wrap.

Config

Global configuration options used to create an Engine and customize its behavior.

Engine

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

ExportType

A descriptor for an exported WebAssembly value.

FrameInfo

Description of a frame in a backtrace for a Trap.

Func

A WebAssembly function which can be called.

FuncType

A descriptor for a function in a WebAssembly module.

Global

A WebAssembly global value which can be read and written to.

GlobalType

A WebAssembly global descriptor.

HostRef

Represents a piece of data located in the host environment.

ImportType

A descriptor for an imported value into a wasm module.

Instance

An instantiated WebAssembly module.

Limits

Limits of tables/memories where the units of the limits are defined by the table/memory types.

Linker

Structure used to link wasm modules/instances together.

Memory

A WebAssembly linear memory.

MemoryType

A descriptor for a WebAssembly memory type.

Module

A compiled WebAssembly module, ready to be instantiated.

Store

A Store is a shared cache of information between WebAssembly modules.

Table

A WebAssembly table, or an array of values.

TableType

A descriptor for a table in a WebAssembly module.

Trap

A struct representing an aborted instruction execution, with a message indicating the cause.

Enums

AnyRef

Represents an opaque reference to any data within WebAssembly.

Extern

An external item to a WebAssembly module, or a list of what can possibly be exported from a wasm module.

ExternType

A list of all possible types which can be externally referenced from a WebAssembly module.

Mutability

Indicator of whether a global is mutable or not

OptLevel

Possible optimization levels for the Cranelift codegen backend.

ProfilingStrategy

Select which profiling technique to support.

Strategy

Possible Compilation strategies for a wasm module.

Val

Possible runtime values that a WebAssembly module can either consume or produce.

ValType

A list of all possible value types in WebAssembly.

Traits

IntoFunc

Internal trait implemented for all arguments that can be passed to Func::wrap.

WasmRet

A trait implemented for types which can be returned from closures passed to Func::wrap and friends.

WasmTy

A trait implemented for types which can be arguments to closures passed to Func::wrap and friends.