#futures #core #stream

futures-core

The core traits and types in for the futures library

10 releases

✓ Uses Rust 2018 edition

0.3.5 May 8, 2020
0.3.4 Feb 7, 2020
0.3.1 Nov 7, 2019
0.2.1 Apr 19, 2018
0.2.0-beta Mar 20, 2018

#36 in Asynchronous

Download history 79227/week @ 2020-01-25 94961/week @ 2020-02-01 93626/week @ 2020-02-08 91405/week @ 2020-02-15 102255/week @ 2020-02-22 104525/week @ 2020-02-29 99666/week @ 2020-03-07 104292/week @ 2020-03-14 106193/week @ 2020-03-21 109186/week @ 2020-03-28 112771/week @ 2020-04-04 115266/week @ 2020-04-11 126998/week @ 2020-04-18 135672/week @ 2020-04-25 135039/week @ 2020-05-02 151031/week @ 2020-05-09

475,711 downloads per month
Used in 2,827 crates (154 directly)

MIT/Apache

31KB
308 lines

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.

No runtime deps