#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

#170 in WebAssembly

Download history 724/week @ 2024-07-29 399/week @ 2024-08-05 445/week @ 2024-08-12 829/week @ 2024-08-19 913/week @ 2024-08-26 1425/week @ 2024-09-02 1149/week @ 2024-09-09 584/week @ 2024-09-16 732/week @ 2024-09-23 585/week @ 2024-09-30 492/week @ 2024-10-07 763/week @ 2024-10-14 660/week @ 2024-10-21 574/week @ 2024-10-28 322/week @ 2024-11-04 709/week @ 2024-11-11

2,396 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–27MB
~431K SLoC