Crate wasm

Source

Modules§

const_interpreter_loop
core 🔒
execution 🔒
function_ref
hooks
registry
rw_spinlock
Naive implementation of spin based locking mechanisms
store
validation 🔒
value
value_stack

Macros§

unreachable_validated

Structs§

DataInst
ElemInst
https://webassembly.github.io/spec/core/exec/runtime.html#element-instances
GlobalInst
HostFuncInst
Limits
MemInst
ModuleInst
https://webassembly.github.io/spec/core/exec/runtime.html#module-instances
RuntimeInstance
Store
The store represents all global state that can be manipulated by WebAssembly programs. It consists of the runtime representation of all instances of functions, tables, memories, and globals, element segments, and data segments that have been allocated during the life time of the abstract machine. https://webassembly.github.io/spec/core/exec/runtime.html#store
TableInst
ValidationInfo
Information collected from validating a module. This can be used to create a crate::RuntimeInstance.
WasmFuncInst

Enums§

Error
ExportDesc
ExternVal
https://webassembly.github.io/spec/core/exec/runtime.html#external-values
FuncInst
LinkerError
NumType
https://webassembly.github.io/spec/core/binary/types.html#number-types
RefType
https://webassembly.github.io/spec/core/binary/types.html#reference-types
RuntimeError
ValType
https://webassembly.github.io/spec/core/binary/types.html#reference-types TODO flatten NumType and RefType enums, as they are not used individually and wasmparser also does it.
Value
A value at runtime. This is essentially a duplicate of ValType just with additional values.

Constants§

DEFAULT_MODULE
The default module name if a RuntimeInstance was created using RuntimeInstance::new.

Traits§

ExternFilterable
common convention functions defined for lists of ExternVals, ExternTypes, Exports https://webassembly.github.io/spec/core/exec/runtime.html#conventions https://webassembly.github.io/spec/core/syntax/types.html#id3 https://webassembly.github.io/spec/core/syntax/modules.html?highlight=convention#id1

Functions§

host_function_wrapper
Helper function to quickly construct host functions without worrying about wasm to Rust type conversion.
validate

Type Aliases§

Result