#future #asynchronous-programming #stream #zero-allocation #control-flow #definition

no-std futures

An implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces

48 releases

0.3.30 Dec 24, 2023
0.3.29 Oct 26, 2023
0.3.28 Mar 30, 2023
0.3.25 Oct 20, 2022
0.1.0 Jul 31, 2016

#1 in #future

Download history 1461257/week @ 2024-01-05 1519676/week @ 2024-01-12 1631701/week @ 2024-01-19 1694256/week @ 2024-01-26 1653795/week @ 2024-02-02 1683323/week @ 2024-02-09 1693672/week @ 2024-02-16 1832105/week @ 2024-02-23 1824361/week @ 2024-03-01 1723552/week @ 2024-03-08 1722455/week @ 2024-03-15 1738846/week @ 2024-03-22 1684810/week @ 2024-03-29 1727491/week @ 2024-04-05 1777760/week @ 2024-04-12 1464906/week @ 2024-04-19

6,975,204 downloads per month
Used in 19,285 crates (10,374 directly)

MIT/Apache

1MB
15K SLoC

futures-rs

Zero-cost asynchronous programming in Rust

Build Status crates.io

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:

[dependencies]
futures = "0.3"

The current futures requires Rust 1.56 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:

[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.

Dependencies