commit | aeafc6bb8c4b7839fc737053970f8f3f9b0d377c | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue May 21 23:13:03 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue May 21 23:13:03 2024 +0000 |
tree | 3696b34575fe498ea58be542c569464f89cd981a | |
parent | 0b11b6e3fe3e63ef7b011a4dd20b236313f44827 [diff] | |
parent | fa684249f6be31d01f7cfd7a951c220a5b1465dc [diff] |
Snap for 11869550 from fa684249f6be31d01f7cfd7a951c220a5b1465dc to 24Q3-release Change-Id: I8d2870bd3a7cfc81bd9a43a7281e04bafa46a6dc
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.
Add this to your Cargo.toml
:
[dependencies] futures = "0.3"
The current futures
requires Rust 1.56 or later.
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 }
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.