Crate workflow_wasm

Source
Expand description

github crates.io docs.rs license

This crate provides utilities for WASM32 environment

Modulesยง

callback
callback module provides Callback struct that helps registering Rust closures as JavaScript callbacks.
convert
WASM bindgen casting and utility functions.
defer
The defer utility function.
error
Error enum used by the workflow_wasm crate.
extensions
init
Workflow RS framework initializers
jserror
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.
options
Helper trait for managing options struct which extends Object
panic
Handling 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)
prelude
Common imports for the workflow_wasm crate.
printable
Printable representation for a JsValue. Will print the string representation if it is a string, otherwise will output the debug representation.
result
Result type used by the workflow_wasm crate.
serde
to_value utility that serializes data to a JsValue using serde_wasm_bindgen with BigInt serialization enabled.
utils
Utilities for calling JavaScript functions and retrieving values from JavaScript object properties.