#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

#132 in WebAssembly

Download history 883/week @ 2024-08-17 739/week @ 2024-08-24 1001/week @ 2024-08-31 1649/week @ 2024-09-07 626/week @ 2024-09-14 660/week @ 2024-09-21 675/week @ 2024-09-28 510/week @ 2024-10-05 623/week @ 2024-10-12 707/week @ 2024-10-19 623/week @ 2024-10-26 408/week @ 2024-11-02 431/week @ 2024-11-09 942/week @ 2024-11-16 427/week @ 2024-11-23 507/week @ 2024-11-30

2,324 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

~12–27MB
~412K SLoC