https://github.com/mattiasbuelens/wasm-streams
Bridging between web streams and Rust streams using WebAssembly
https://github.com/mattiasbuelens/wasm-streams
javascript rust stream streams wasm
Last synced: about 1 month ago
JSON representation
Bridging between web streams and Rust streams using WebAssembly
- Host: GitHub
- URL: https://github.com/mattiasbuelens/wasm-streams
- Owner: MattiasBuelens
- License: apache-2.0
- Created: 2019-10-18T21:40:51.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T13:01:08.000Z (8 months ago)
- Last Synced: 2025-04-13T07:45:27.989Z (2 months ago)
- Topics: javascript, rust, stream, streams, wasm
- Language: Rust
- Homepage:
- Size: 327 KB
- Stars: 169
- Watchers: 6
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# wasm-streams
[](https://github.com/MattiasBuelens/wasm-streams)
[](https://crates.io/crates/wasm-streams)
[](https://docs.rs/wasm-streams)This crate bridges the gap between [web streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API)
and [Rust streams from the futures crate](https://docs.rs/futures/latest/futures/stream).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](https://docs.rs/wasm-streams) for more information,
or check out the [examples](https://github.com/MattiasBuelens/wasm-streams/tree/main/examples).## License
Licensed under either of
* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
at your option.### 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.