#future #stream #asynchronous-programming #zero-cost #interface #branch #allocations

no-std futures01

An implementation of futures and streams featuring zero allocations, composability, and iterator-like interfaces. Note that this crate tracks permanently to the 0.1 branch of the futures crate

5 releases

Uses old Rust 2015

0.1.31 Feb 24, 2021
0.1.30 Oct 5, 2020
0.1.29 Sep 5, 2019
0.1.28 Jun 26, 2019
0.1.27 May 14, 2019

#27 in #zero-cost

Download history 173/week @ 2023-11-29 197/week @ 2023-12-06 302/week @ 2023-12-13 241/week @ 2023-12-20 137/week @ 2023-12-27 181/week @ 2024-01-03 124/week @ 2024-01-10 127/week @ 2024-01-17 131/week @ 2024-01-24 92/week @ 2024-01-31 53/week @ 2024-02-07 89/week @ 2024-02-14 141/week @ 2024-02-21 145/week @ 2024-02-28 259/week @ 2024-03-06 205/week @ 2024-03-13

772 downloads per month
Used in 5 crates (2 directly)

MIT/Apache

61KB
749 lines

futures-rs

Zero-cost asynchronous programming in Rust

Build Status crates.io

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"

The current futures requires Rust 1.56 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

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies