Crate wasmy_vm

Crate wasmy_vm 

Source

Modules§

abi
Generated file from abi.proto
test
Generated file from test.proto
types

Macros§

submit_handler
Enter an element into the plugin registry corresponding to its type.

Structs§

Any
CodeMsg
CodedOutputStream
Buffered write with handy utilities
Context
Empty
Exports
Exports is a special kind of map that allows easily unwrapping the types of instances.
Function
A WebAssembly function instance.
ImportObject
All of the import data used when instantiating.
InArgs
Generated files are compatible only with the same version of protobuf runtime.
Instance
InstanceEnv
Module
A WebAssembly Module contains stateless WebAssembly code that has already been compiled and can be instantiated multiple times.
OutRets
VmHandlerApi
WasiState
Top level data type containing all* the state with which WASI can interact.
WasiStateBuilder
Convenient builder API for configuring WASI via WasiState.
WasmCaller
WasmCtx
Default WasmContext implementation.
WasmUri

Constants§

CODE_COMPILE
CODE_EXPORTS
CODE_INSTANTIATION
CODE_MEM
CODE_NONE
CODE_PROTO
CODE_RUNTIME
CODE_UNKNOWN
CODE_WASI

Traits§

Message
Trait implemented for all generated structs for protobuf messages.
ProtobufEnum
Trait implemented by all protobuf enum types.
WasmContext
WasmContext is wasm context abstraction.
WasmFile

Functions§

custom_load_wasm
file_descriptor_proto
load_wasm
pack_any
pack_empty
set_handler
unpack_any
wasm_handle
The underlying function of wasm to handle requests.

Type Aliases§

CtxId
FnBuildImportObject
FnCheckModule
Method
Result
RetCode
Val
WebAssembly computations manipulate values of basic value types:
VmHandler
VmMethod
WasmMethod

Attribute Macros§

vm_handle
Register vm’s ABI for handling wasm callbacks. format description: #[vm_handle(wasmy_abi::Method)] example:
wasm_handle
Register wasm’s ABI for handling requests. format description: #[wasm_handle(i32)] or #[wasm_handle(method=i32)] example:
wasm_onload
Register the ABI for wasm load-time initialization state. Register wasm’s ABI for handling requests. format description: #[wasm_onload] example: