1 unstable release

0.1.0 Feb 6, 2021

#790 in WebAssembly

Download history 254/week @ 2023-12-18 264/week @ 2024-01-01 106/week @ 2024-01-08 205/week @ 2024-01-15 253/week @ 2024-01-22 220/week @ 2024-01-29 279/week @ 2024-02-05 354/week @ 2024-02-12 380/week @ 2024-02-19 316/week @ 2024-02-26 115/week @ 2024-03-04 434/week @ 2024-03-11 1065/week @ 2024-03-18 1713/week @ 2024-03-25 996/week @ 2024-04-01

4,233 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
~38K SLoC