API Reference
futures
Utilities for asynchronous programming in Rust, including combinators, streams, and executors.
Official Documentation ↗CompatibilityThis documentation covers version
v0.3. Check the official docs for the latest API surface.Installation
cargo
cargo add futuresMethods
No methods match this filter.
futures provides the Future and Stream traits along with combinators and helper macros.
Key Features
- join and select macros
- Stream combinators similar to iterators
- A simple block_on executor for tests
Usage Notes
Pin a version and check the official docs for the API surface you depend on before upgrading.
API reference evidence
Fetched from official sources on 2026-11-08T17:27:00+08:00 via WebFetch https://docs.rs/futures/latest/futures/macro.join.html;WebFetch https://docs.rs/futures/latest/futures/macro.select.html;WebFetch https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html.
futures::join!→ signature from https://docs.rs/futures/latest/futures/macro.join.html; official text: “macro_rules! join { ($($tokens:tt)*) => { … }; }”futures::select!→ signature from https://docs.rs/futures/latest/futures/macro.select.html; official text: “macro_rules! select { ($($tokens:tt)*) => { … }; }”StreamExt::next→ signature from https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html; official text: “fn next(&mut self) -> Next<’_, Self> where Self: Unpin”
FAQ
- How do join and select differ?
- join waits for all futures, while select returns as soon as the first completes and drops the rest.
- Why must select futures be fused?
- After a future completes it must not be polled again; Fuse guarantees that, which select relies on.
- Is block_on for production?
- No. It exists for tests and simple programs; production code should run on an executor such as Tokio.
Report a problem with this API docOpens a pre-filled issue on GitHub.