#futures #io #stream

futures-io

The AsyncRead and AsyncWrite traits for the futures-rs library

7 releases

✓ Uses Rust 2018 edition

0.3.1 Nov 7, 2019
0.3.0 Nov 6, 2019
0.2.1 Apr 19, 2018
0.2.0-beta Mar 20, 2018
0.1.0 Jul 31, 2016
Download history 164/week @ 2019-10-07 161/week @ 2019-10-14 192/week @ 2019-10-21 120/week @ 2019-10-28 6541/week @ 2019-11-04 15762/week @ 2019-11-11 17590/week @ 2019-11-18 21682/week @ 2019-11-25 28285/week @ 2019-12-02 35010/week @ 2019-12-09 35150/week @ 2019-12-16 22176/week @ 2019-12-23 39821/week @ 2019-12-30 58146/week @ 2020-01-06 58691/week @ 2020-01-13

56,015 downloads per month
Used in 808 crates (29 directly)

MIT/Apache

23KB
281 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.1", 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