commit | 8d31a767c0d7c04416bab5c00e5812c80dcb4e04 | [log] [tgz] |
---|---|---|
author | Elisei Zamakhov <[email protected]> | Thu Jul 11 16:01:29 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Thu Jul 11 16:01:29 2024 +0000 |
tree | 80eb03161be5df4d00adbc11d21b149f26111542 | |
parent | fa684249f6be31d01f7cfd7a951c220a5b1465dc [diff] | |
parent | 1b45443ef19b0fda34382ea6026301e1dcfdf107 [diff] |
Mark apex-available am: 1b45443ef1 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures/+/3166940 Change-Id: I36c5149093f7d03e07e352f938b61e7d293a6484 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.