Crate wasmrs

source ·
Expand description

wasmrs

WasmRS is an implementation of Reactive Streams for WebAssembly modules that allows hosts & guests to communicate via asynchronous, bidirectional streams.

The wasmrs crate is the base implementation of the bidirectional WebAssembly socket.

Usage

See wasmrs-guest, wasmrs-host, and wasmrs-wamtime for examples on how to use wasmrs directly.

More Information

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 nanobus for up-to-date usage.

Contributing

See CONTRIBUTING.md

License

See the root LICENSE.txt

Re-exports

pub use frames::ErrorCode;
pub use frames::Frame;
pub use frames::Metadata;
pub use frames::Payload;

Modules

RSocket Frame implementations.
Utility functions related to frames.

Structs

The implementation of a WasmRS buffer where frames are written to and read from.
An operation record.
A list of imports/exports for a wasmRS module.
The error type used for all wasmrs_rx::Mono/wasmrs_rx::Flux payloads.
A socket that can be used to communicate between a host & guest via the wasmRS protocol.

Enums

Error type for wasmRS RSocket errors.
The types of RSocket operations supported by wasmRS.
Specify the socket side (only used for debugging).

Traits

A trait that defines the interface for a wasmRS module host.
A trait for an RSocket client/server (host/guest).