27 releases (10 breaking)

new 0.12.0 Apr 20, 2024
0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.8.1 Nov 1, 2023
0.1.0 Sep 21, 2022

#64 in WebAssembly

Download history 618/week @ 2023-12-24 264/week @ 2023-12-31 474/week @ 2024-01-07 337/week @ 2024-01-14 741/week @ 2024-01-21 199/week @ 2024-01-28 280/week @ 2024-02-04 266/week @ 2024-02-11 236/week @ 2024-02-18 496/week @ 2024-02-25 187/week @ 2024-03-03 285/week @ 2024-03-10 201/week @ 2024-03-17 324/week @ 2024-03-24 370/week @ 2024-03-31 147/week @ 2024-04-07

1,079 downloads per month
Used in 53 crates (22 directly)

MIT/Apache

210KB
4.5K SLoC

workflow-wasm

Part of the workflow-rs application framework.


WASM (browser) functionality

github crates.io docs.rs license

Features

  • timer and interval functions that wrap JavaScript setTimeout() and setInterval() returning a handle that encapsulates the JavaScript handle and the callback closure. Dropping this handle results in the closing of the timeout or interval as well as destruction of the closure. (This is useful to prevent memory leaks when creating JavaScript Closures and using closure.forget() functionality)
  • Callback struct that encapsulates a JavaScript event listener (callback) closure making it easier to creaet and retain JavaScript closures.
  • Utility functions that simplify accessing JavaScript object properties and function invocations (based on top of web-sys and js-sys APIs).

Dependencies

~17–33MB
~500K SLoC