Crate whatwg_streams

Crate whatwg_streams 

Source
Expand description

WHATWG Streams implementation for Rust

This crate provides an implementation of the WHATWG Streams Standard in Rust.

§Features

  • send (default): Multi-threaded streams using Arc (requires Send + Sync)
  • local: Single-threaded streams using Rc (no Send + Sync required)

§Examples

§Multi-threaded (default)

[dependencies]
whatwg_streams = "0.1"

§Single-threaded (WASM or LocalSet)

[dependencies]
whatwg_streams = { version = "0.1", default-features = false, features = ["local"] }

Re-exports§

pub use streams::*;

Modules§

streams

Macros§

impl_stream_error_from