#futures #util #stream

futures-util

Common utilities and extension traits for the futures-rs library

12 releases

new 0.3.7 Oct 23, 2020
0.3.6 Oct 5, 2020
0.3.5 May 8, 2020
0.3.4 Feb 7, 2020
0.2.0-beta Mar 20, 2018

#568 in Asynchronous

Download history 168368/week @ 2020-07-05 162572/week @ 2020-07-12 172702/week @ 2020-07-19 170102/week @ 2020-07-26 171410/week @ 2020-08-02 170334/week @ 2020-08-09 169476/week @ 2020-08-16 174006/week @ 2020-08-23 166554/week @ 2020-08-30 168488/week @ 2020-09-06 181108/week @ 2020-09-13 181441/week @ 2020-09-20 192956/week @ 2020-09-27 213430/week @ 2020-10-04 216319/week @ 2020-10-11 210964/week @ 2020-10-18

788,212 downloads per month
Used in 4,317 crates (384 directly)

MIT/Apache

740KB
14K SLoC

futures-rs

Zero-cost asynchronous programming in Rust

Build Status Crates.io Rustc Version

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"

Now, you can use futures-rs:

use futures::future::Future;

The current futures-rs requires Rust 1.39 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.5", default-features = false }

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in futures-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.5–1MB
~23K SLoC