Attribute Macro wasmy_vm::wasm_handle
source · [−]#[wasm_handle]
Expand description
Register wasm’s ABI for handling requests.
format description: #[wasm_handle(i32)] or #[wasm_handle(method=i32)]
example:
#[wasm_handle(method=123)]
fn xxx<W: wasmy_abi::WasmContext<Value>, Value: wasmy_abi::Message, A: wasmy_abi::Message, R: wasmy_abi::Message>(ctx: W, args: A) -> wasmy_abi::Result<R> {todo!()}
command to check expanded code: cargo +nightly rustc -- -Zunstable-options --pretty=expanded