Functions to obtain Rust object references from WASM ABI.
callback
module provides
Callback
struct that helps registering
Rust closures as JavaScript callbacks.
Subscription-based channel multiplexer - WASM client.
Error enum used by the workflow_wasm
crate.
Workflow RS framework initializers
Structures for handling JavaScript errors. Specifically this module
provides a JsErrorData
struct which is used to extract information
from a JsValue
that represents a JavaScript error.
JsValue to native Rust datatypes conversion utilities.
These utilities marshall incoming data for different types
of representations and convert them to native Rust datatypes.
For example, a Vec can be converted from a Uint8Array
or from a hex-encoded string.
Js
Object
property access utilities
Helper trait for managing options struct which extends
ObjectHandling of WASM panic hook that allows activation of console-based panic hook
as well as a browser-based panic hook. (the browser-based panic hook activates a full-screen debug
information output in case of a panic - useful on mobile devices or where
the user otherwise has no access to console/developer tools)
Common imports for the workflow_wasm
crate.
Printable representation for a JsValue. Will print the string
representation if it is a string, otherwise
will output the debug representation.
The
defer
utility function.
Result
type used by the
workflow_wasm
crate.
Conversion from Rust streams into async JavaScript generators.
to_value
utility that serializes data to a
JsValue
using
serde_wasm_bindgen
with
BigInt
serialization enabled.
Utilities for calling JavaScript functions and retrieving values
from JavaScript object properties.