Crate wasmrs_runtime
source ·Expand description
wasmrs-runtime
wasmrs-runtime is a set of structs and functions that are normalized across multithreaded native tokio and single-threaded WebAssembly using whatever the smallest, fastest, single threaded, async, WebAssembly-compatible runtime of the day is.
Notice!
You’re better off not relying on this crate. It’s a crate that exists only for as long as it needs to. As WebAssembly matures and there are more standard solutions for the problems this crate solves, this crate will be deprecated.
More Info
For more information on wasmRS, see the core wasmrs crate.
WasmRS makes heavy use of generated code from apex
specs and generators to automate all of the boilerplate. See the getting-started for usage.
Contributing
See CONTRIBUTING.md
License
See the root LICENSE.txt
Structs
- A OneShort Receiver that works the same way in single-threaded WebAssembly as multi-threaded native.
- A Unbounded Sender that works the same way in single-threaded WebAssembly as multi-threaded native.
- A Unbounded Receiver that works the same way in single-threaded WebAssembly as multi-threaded native.
- A Unbounded Sender that works the same way in single-threaded WebAssembly as multi-threaded native.
Enums
- Error type for wasmRS Runtime errors.
Traits
Functions
- A oneshot channel similar to tokio::sync::oneshot::channel but works the same way in single-threaded WebAssembly as multi-threaded native.
- Create an unbounded channel.