#futures #util #stream

futures-util

Common utilities and extension traits for the futures-rs library

9 releases

✓ Uses Rust 2018 edition

0.3.4 Feb 7, 2020
0.3.3 Feb 5, 2020
0.3.1 Nov 7, 2019
0.2.1 Apr 19, 2018
0.2.0-beta Mar 20, 2018
Download history 36489/week @ 2019-12-17 26968/week @ 2019-12-24 43832/week @ 2019-12-31 64476/week @ 2020-01-07 63823/week @ 2020-01-14 73876/week @ 2020-01-21 78944/week @ 2020-01-28 97336/week @ 2020-02-04 88859/week @ 2020-02-11 89038/week @ 2020-02-18 102605/week @ 2020-02-25 98415/week @ 2020-03-03 99642/week @ 2020-03-10 103983/week @ 2020-03-17 102550/week @ 2020-03-24 101222/week @ 2020-03-31

189,504 downloads per month
Used in 2,232 crates (180 directly)

MIT/Apache

770KB
15K 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.4", 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