Registry / async / futures-async-stream

futures-async-stream

JSON →
library0.2.13rscratesunverified

Async stream for Rust and the futures crate.

# Cargo.toml [dependencies] futures-async-stream = "0.2.13"
INSTALL
IMPORT
SIG · FUTURES-ASYNC-STRE
F
futures-async-stream
asyncrustv0.2.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

try_stream
use futures_async_stream::try_stream;

Creates an async stream using the try_stream macro.

use futures_async_stream::try_stream; #[try_stream] async fn example() -> Result<i32, ()> { yield 1; yield 2; } fn main() { let stream = example(); println!("Stream created"); }
Debug
Known issues
gotchaRequires nightly Rust for async generators
fix
Use nightly toolchain or enable feature flags if available.
affects: >=0.1.0
Upgrade
Version history
0.2.13latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
futures-async-stream — cargo add futures-async-stream · libregistry