#futures #sink #stream

futures-sink

The asynchronous Sink trait for the futures-rs library

20 releases

0.3.15 May 11, 2021
0.3.13 Feb 23, 2021
0.3.8 Nov 9, 2020
0.3.5 May 8, 2020
0.2.0-beta Mar 20, 2018
Download history 319129/week @ 2021-02-20 321860/week @ 2021-02-27 304700/week @ 2021-03-06 318973/week @ 2021-03-13 323094/week @ 2021-03-20 319721/week @ 2021-03-27 311771/week @ 2021-04-03 347844/week @ 2021-04-10 335522/week @ 2021-04-17 329739/week @ 2021-04-24 309628/week @ 2021-05-01 353437/week @ 2021-05-08 342271/week @ 2021-05-15 338047/week @ 2021-05-22 328386/week @ 2021-05-29 342391/week @ 2021-06-05

1,382,286 downloads per month
Used in 7,314 crates (61 directly)

MIT/Apache

11KB
113 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.41 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", 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

Features

  • alloc
  • std