1 unstable release

0.1.0 Feb 6, 2021

#876 in WebAssembly

Download history 975/week @ 2024-03-14 1335/week @ 2024-03-21 1461/week @ 2024-03-28 538/week @ 2024-04-04 398/week @ 2024-04-11 464/week @ 2024-04-18 781/week @ 2024-04-25 654/week @ 2024-05-02 528/week @ 2024-05-09 744/week @ 2024-05-16 802/week @ 2024-05-23 515/week @ 2024-05-30 566/week @ 2024-06-06 480/week @ 2024-06-13 713/week @ 2024-06-20 365/week @ 2024-06-27

2,236 downloads per month
Used in 2 crates

MIT/Apache

18KB
321 lines

Shared Channel for WebAssembly

Crate API

This crate provides a way for WebAssembly threads to receive messages from other threads using a JavaScript primitive called SharedArrayBuffer which allows to share memory and use atomics between different threads.

This allows us to deploy Rust code as a worker process communicating with the main thread.

Usage

Include this dependency in your Cargo.toml:

[dependencies]
wasm-rs-shared-channel = "0.1.0"

Take a look at the example to see how wasm-rs-shared-channel can be integrated.

License

Licensed under either of

Dependencies

~1–2MB
~37K SLoC