commit | fa684249f6be31d01f7cfd7a951c220a5b1465dc | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Tue May 21 15:04:26 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue May 21 15:04:26 2024 +0000 |
tree | 3696b34575fe498ea58be542c569464f89cd981a | |
parent | 76588492f347eeba34cc91b1a352a349b66d6bd6 [diff] | |
parent | 3e207ca90567b2816f1e06a598a01ca297e699f2 [diff] |
Update Android.bp by running cargo_embargo am: fae59bca92 am: 3e207ca905 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures/+/3094769 Change-Id: I6cea64374808f43024d4f36006d8f9547118ca7e Signed-off-by: Automerger Merge Worker <[email protected]>
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.