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

#39 in WebAssembly

Download history 427878/week @ 2024-08-18 403109/week @ 2024-08-25 385634/week @ 2024-09-01 427857/week @ 2024-09-08 388203/week @ 2024-09-15 442037/week @ 2024-09-22 452950/week @ 2024-09-29 475831/week @ 2024-10-06 446802/week @ 2024-10-13 463269/week @ 2024-10-20 462674/week @ 2024-10-27 479102/week @ 2024-11-03 478085/week @ 2024-11-10 475742/week @ 2024-11-17 369491/week @ 2024-11-24 405964/week @ 2024-12-01

1,751,696 downloads per month
Used in 2,554 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
~201K SLoC