async-stream
async-stream copied to clipboard
Asynchronous streams for Rust using async & await notation
Fix ui test failure on Rust 1.76: https://github.com/tokio-rs/async-stream/actions/runs/8127087685/job/22211533379
Hello, when I check the Cargo.toml file at v0.3.5 ( https://github.com/tokio-rs/async-stream/blob/v0.3.5/async-stream/Cargo.toml ), I see tokio_test in there: ``` tokio-test = "0.4" ``` However, crates.io does not list it: https://crates.io/crates/async-stream/0.3.5/dependencies When...
Greetings! Why `Err` close stream? I can't use `.filter(..)` in that case. ```rust use async_stream::{stream, try_stream}; use futures_util::{pin_mut, Stream, StreamExt}; use std::future::ready; fn error_or_ok(rcx: usize) -> Result { if rcx...
When using the `stream!` or `try_stream!` macros autocomplete with rust analyzer works fine until a `yield` statement is written, this is due to the macro no longer expanding if there...
I'm working on [a project](https://gitlab.com/ydirson/xen-guest-agent/-/tree/ydi/rust-proto) where I use `async_stream` for interfacing with an optional crate. I wish to propose a stub for platforms that don't have support for this crate....
It would be nice if a [`yield*`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/yield*) equivalent was supported.
This PR fixes the unsoundness reported in #106 and #107 cc @steffahn (for checking the fixes, whether they are actually correct) Closes #106 Closes #107
error: cannot produce proc-macro for `async-stream-impl v0.3.5` as the target `aarch64-unknown-linux-gnu` does not support these crate types
Soundness hole: Use-after-free through mismatching lifetimes of stream item and yielded type This is almost trivially simple to run into. Just yield something that's shorter-lived than what the place using...
It seems (me looking at macro expansions) that `yield` usage in an `async {}` block is not expanded by this macro, and that’s good - in principle - because it...