commit | 6c7e4bb0c44ba6cebbecfc473acdf41fa155cd92 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 21 23:09:18 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 21 23:09:18 2024 +0000 |
tree | 3696b34575fe498ea58be542c569464f89cd981a | |
parent | 4d06d315083b7847b55fe9f865d3edfabeb9fedb [diff] | |
parent | fae59bca92ff59354af377c9de5887c2a867f1d8 [diff] |
Snap for 11871564 from fae59bca92ff59354af377c9de5887c2a867f1d8 to sdk-release Change-Id: Ib525481de07aa6041875799c177dc873b9fecac0
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.