rust-lang /futures-rs
Zero-cost asynchronous programming in Rust
★ 5,945⑂ 712👁 94⑃ 1,889● 1,177▤ 68
More from this author
+0
Daily
5,945
stars
712
forks
94
watchers
1,889
prs
1,177
issues
68
releases
README
Zero-cost asynchronous programming in Rust
Documentation
|
Website
futures-rs is a library providing the foundations for asynchronous programming in Rust.
It includes key trait definitions like Stream, as well as utilities like join!,
select!, and various futures combinator methods which enable expressive asynchronous
control flow.
Usage
Add this to your Cargo.toml:
toml
[dependencies]
futures = "0.3"
The current futures requires Rust 1.71 or later.
Feature std
Futures-rs works without the standard library, such as in bare metal environments.
However, it has a significantly reduced API surface. To use futures-rs in
a [no_std] environment, use:
toml
[dependencies]
futures = { version = "0.3", default-features = false }
License
Licensed under either of Apache License, Version 2.0 or
MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.Top issues
#210Debounce / sample stream combinators21 comments · 2016-10-16#2207futures-core 1.0 release19 comments · 2020-09-04#1857Support infinite streams17 comments · 2019-09-03#2387Footgun lurking in `FuturesUnordered` and other concurrency-enabling streams16 comments · 2021-04-07#2209Add AsyncRead::poll_read_buf based on RFC 293016 comments · 2020-09-05#860no_std support for futures-io12 comments · 2018-03-11#2329FuturesUnordered + HashMap?11 comments · 2021-01-26#891zip_latest Stream adapter11 comments · 2018-03-21
Latest release
0.3.34 0.3.34 2026-08-11Preserve cloned waker identity. (3032) Updato syn to 3. (3028)