commit | 7c207af671f9b7a98bb474c89ed8761ae97c32a0 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu May 23 15:42:21 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu May 23 15:42:21 2024 +0000 |
tree | 3696b34575fe498ea58be542c569464f89cd981a | |
parent | d2d1a1905cfb63469b75a19d886140837846cf9b [diff] | |
parent | fae59bca92ff59354af377c9de5887c2a867f1d8 [diff] |
Snap for 11880863 from fae59bca92ff59354af377c9de5887c2a867f1d8 to build-tools-release Change-Id: I2fbb6167909bcc441c7be494056344ac236478e7
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.