#futures #executor #stream

futures-executor

Executors for asynchronous tasks based on the futures-rs 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

#7 in Asynchronous

Download history 86675/week @ 2020-03-23 92070/week @ 2020-03-30 86964/week @ 2020-04-06 93569/week @ 2020-04-13 97851/week @ 2020-04-20 106925/week @ 2020-04-27 105768/week @ 2020-05-04 128719/week @ 2020-05-11 114015/week @ 2020-05-18 113054/week @ 2020-05-25 130807/week @ 2020-06-01 137328/week @ 2020-06-08 137158/week @ 2020-06-15 139008/week @ 2020-06-22 134271/week @ 2020-06-29 136033/week @ 2020-07-06

378,107 downloads per month
Used in 482 crates (54 directly)

MIT/Apache

675KB
13K 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

~430–800KB
~18K SLoC