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

cargocargo add futures

Methods

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.

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.