Crate workflow_wasm

source ·
Expand description

github crates.io docs.rs license

This crate provides utilities for WASM32 environment

Modules

  • Functions to obtain Rust object references from WASM ABI.
  • callback module provides Callback struct that helps registering Rust closures as JavaScript callbacks.
  • Workflow RS framework initializers
  • Js Object property access utilities
  • Helper trait for managing options struct which extends Object
  • 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)
  • Sendable NewType for automatic Send marker tagging of JS primitives.
  • Interval and Timeout functions that return an IntervalHandle or TimeoutHandle handles dropping which results in automatic clearing of the respective timeout or interval.
  • Utilities for calling JavaScript functions and retrieving values from JavaScript object properties.