Registry / async / futures-util

futures-util

JSON →
library0.3.32rscratesunverified

Common utilities and extension traits for the futures-rs library.

# Cargo.toml [dependencies] futures-util = "0.3.32"
INSTALL
IMPORT
SIG · FUTURES-UTIL
F
futures-util
asyncrustv0.3.32
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.

StreamExt
use futures_util::StreamExt;

Processes a stream asynchronously using StreamExt.

use futures_util::StreamExt; async fn process(stream: impl futures_util::Stream<Item = i32> + Unpin) { let mut stream = stream; while let Some(item) = stream.next().await { println!("{}", item); } } fn main() { // Example usage requires an async runtime }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) to execute futures.
fix
Add `tokio` or `async-std` as a dependency and use `#[tokio::main]` or similar.
affects: *
Upgrade
Version history
0.3.32latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
OpenAI (training)
1
Resources