[−][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
wasm | This file defines the extern "C" API, which is compatible with the Wasm C API. |
Structs
Config | Global configuration options used to create an |
Engine | An |
ExportType | A descriptor for an exported WebAssembly value. |
FrameInfo | |
Func | |
FuncType | A descriptor for a function in a WebAssembly module. |
Global | |
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 | |
Limits | Limits of tables/memories where the units of the limits are defined by the table/memory types. |
Memory | |
MemoryType | A descriptor for a WebAssembly memory type. |
Module | A compiled WebAssembly module, ready to be instantiated. |
Store | A |
Table | |
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 | |
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. |
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
Callable | A trait representing a function that can be imported and called from inside WebAssembly. |
HostInfo |