commit | e939038126f5d858ea87daa9cb3310a77f5e61ac | [log] [tgz] |
---|---|---|
author | Treehugger Robot <[email protected]> | Thu Jul 11 16:04:32 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Jul 11 16:04:32 2024 +0000 |
tree | 80eb03161be5df4d00adbc11d21b149f26111542 | |
parent | 8d31a767c0d7c04416bab5c00e5812c80dcb4e04 [diff] | |
parent | bcf6ac8da0945f697724c93e045db17dc4a5a406 [diff] |
Merge "Mark apex-available" into main am: bcf6ac8da0 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures/+/3166947 Change-Id: Ib2ec6cbd2e97ba350a67395cb9a5e651a78e0b14 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.