bytecodealliance / bytecodealliance/wit-bindgen

Rust: Future/Stream-based "spawn" APIs for WIT streams/futures

Open
#1,387 0 comments 0 reactions 0 assignees View on GitHub
gen-rust
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

@rvolosatovs and @dicej had an idea in a meeting we had today where we should have an API in this crate for converting a Rust `Future` to a WIT `future` by sort of "spawning" it, effectively you yield ownership of the future to `wit-bindgen` crate and that'd give you back a `future`. That'd then manage polling the original future and then writing the result to the writer half of the channel the runtime provides. Similarly this could work for streams of values (maybe with a bit more finesse to handle chunking)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.