wasm-rs-shared-channel

Crates.iowasm-rs-shared-channel
lib.rswasm-rs-shared-channel
version0.1.0
sourcesrc
created_at2021-02-06 17:00:02.301277
updated_at2021-02-06 17:00:02.301277
descriptionShared channel for WebAssembly
homepage
repositoryhttps://github.com/wasm-rs/shared-channel
max_upload_size
id351576
size32,341
Yurii Rashkovskii (yrashk)

documentation

https://docs.rs/wasm-rs-shared-channel

README

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

Commit count: 6

cargo fmt