#browser #channel #bounded-channel #nodejs #macro-derive #web-framework

workflow-core

Utilities and curated re-exports for async rust native and browser development

36 releases (15 breaking)

0.18.0 Sep 7, 2024
0.15.0 Jul 26, 2024
0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.1.0 Sep 21, 2022

#134 in WebAssembly

Download history 588/week @ 2024-08-13 709/week @ 2024-08-20 984/week @ 2024-08-27 1550/week @ 2024-09-03 1019/week @ 2024-09-10 476/week @ 2024-09-17 772/week @ 2024-09-24 579/week @ 2024-10-01 496/week @ 2024-10-08 735/week @ 2024-10-15 645/week @ 2024-10-22 608/week @ 2024-10-29 344/week @ 2024-11-05 736/week @ 2024-11-12 639/week @ 2024-11-19 503/week @ 2024-11-26

2,290 downloads per month
Used in 68 crates (37 directly)

MIT/Apache

145KB
3K SLoC

workflow-core

Part of the workflow-rs application framework.


github crates.io docs.rs license

Collection of utilities and curated re-exports that are able to operate on native platforms as well as in the WASM32 Web Browser & Node.js environments.

Features

  • #[derive(Describe)] derive macro for enums offering conversion of enums to and from strings as well as associating a custom description attribute with each of the enum values.
  • id module offering a random 64-bit UUID-like base58-encodable identifier representation (useful for DOM element IDs)
  • task module offering async spawn() functionality for async code task execution as well as re-exports following modules:
    • async_std::channel: offering unbounded and bounded channels from async_std
    • channel::oneshot: asias for async_std::channel::bounded(1)
    • triggered: re-export of the Triggered crate
  • async sleep() and yield_now() functions
  • async yield_executor() for higher-level suspension of the browser event loop
  • utility module functions for buffer manipulation

Dependencies

~13–28MB
~439K SLoC