[−][src]Crate wasmer_runtime_core_asml_fork
Wasmer Runtime Core Library
This crate provides common data structures which are shared by compiler backends to implement a WebAssembly runtime.
This crate also provides an API for users who use wasmer as an embedded wasm runtime which allows operations like compiling, instantiating, providing imports, access exports, memories, and tables for example.
Most wasmer users should prefer the API which is re-exported by the wasmer-runtime
library by default. This crate provides additional APIs which may be useful to users
that wish to customize the wasmer runtime.
Re-exports
pub use trampoline_x64 as trampoline; |
pub use wasmparser; |
Modules
cache | The cache module provides the common data structures used by compiler backends to allow serializing compiled wasm code to a binary format. The binary format can be persisted, and loaded to allow skipping compilation and fast startup. |
codegen | The codegen module provides common functions and data structures used by multiple backends during the code generation process. |
error | The error module contains the data structures and helper functions used to implement errors that are produced and returned from the wasmer runtime core. |
export | This module contains types to manipulate and access a Wasm module's exports including memories, tables, globals, and functions. |
fault | The fault module contains the implementation for handling breakpoints, traps, and signals for wasm code. |
global | The global module contains data structures and helper functions used to manipulate and access Wasm globals. |
import | The import module contains the implementation data structures and helper functions used to manipulate and access a wasm module's imports including memories, tables, globals, and functions. |
instance | This module contains types for manipulating and accessing Wasm instances. |
loader | The loader module functions are used to load an instance. |
memory | The memory module contains the implementation data structures and helper functions used to manipulate and access wasm memory. |
module | This module contains the types to manipulate and access Wasm modules. |
parse | The parse module contains common data structures and functions using to parse wasm files into runtime data structures. |
prelude | The prelude module is a helper module used to bring commonly used runtime core imports into scope. |
state | The state module is used to track state of a running web assembly instances so that state could read or updated at runtime. Use cases include generating stack traces, switching generated code from one tier to another, or serializing state of a running instace. |
structures | The structures module contains commonly used data structures. |
table | The runtime table module contains data structures and functions used to create and update wasm tables. |
trampoline_x64 | Trampoline generator for carrying context with function pointer. |
typed_func | The typed func module implements a way of representing a wasm function with the correct types from rust. Function calls using a typed func have a low overhead. |
types | The runtime types modules represent type used within the wasm runtime and helper functions to convert to other represenations. |
units | This module provides common WebAssembly units like |
vm | The runtime vm module contains data structures and helper functions used during runtime to execute wasm instance functions. |
Macros
func | Helper macro to create a new |
imports | Generate an |
Structs
DynFunc | A representation of an exported WebAssembly function. |
Func | Represents a function that can be used by WebAssembly. |
Instance | An instantiated WebAssembly module. |
Module | A compiled WebAssembly module. |
Constants
VERSION | The current version of this crate |
Traits
IsExport | A trait that represents |
Functions
compile_with | Compile a |
compile_with_config | The same as |
load_cache_with⚠ | Creates a new module from the given cache |
validate | Perform validation as defined by the
WebAssembly specification. Returns |
validate_and_report_errors | The same as |
validate_and_report_errors_with_features | The same as |
Type Definitions
Result | Aliases the standard |