11 releases

0.4.2 Oct 25, 2024
0.4.0 Oct 31, 2023
0.3.0 Oct 15, 2022
0.2.3 May 18, 2022
0.1.0 Jun 14, 2020

#30 in WebAssembly

Download history 367933/week @ 2024-07-31 388279/week @ 2024-08-07 393656/week @ 2024-08-14 425959/week @ 2024-08-21 366217/week @ 2024-08-28 439385/week @ 2024-09-04 407736/week @ 2024-09-11 409519/week @ 2024-09-18 447591/week @ 2024-09-25 465291/week @ 2024-10-02 444499/week @ 2024-10-09 470423/week @ 2024-10-16 469991/week @ 2024-10-23 460644/week @ 2024-10-30 460749/week @ 2024-11-06 497101/week @ 2024-11-13

1,982,551 downloads per month
Used in 2,535 crates (29 directly)

MIT/Apache

94KB
1.5K SLoC

wasm-streams

Build Status Crates.io Version Docs.rs

This crate bridges the gap between web streams and Rust streams from the futures crate.

It provides Rust APIs for interacting with a JavaScript ReadableStream, WritableStream or TransformStream. It also allows converting between a ReadableStream and a Rust Stream, as well as between a WritableStream and a Rust Sink.

See the API documentation for more information, or check out the examples.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~8–11MB
~199K SLoC