commit | ac214f7375bcdb2200a002be7ec9f83bdf03404d | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Aug 08 01:12:18 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Aug 08 01:12:18 2024 +0000 |
tree | f311601f1f2e96f926c131a663ac12e5f1fbed24 | |
parent | 3c0ed2fa1e9b5d84efc9cf4a5ea1aa30400ce3aa [diff] | |
parent | a29d716cd1aa534a6d534b86dd0a80fa2faf9732 [diff] |
Snap for 12199973 from a29d716cd1aa534a6d534b86dd0a80fa2faf9732 to 24Q4-release Change-Id: I6a25fc64568b3caed570610ba716831975a89b30
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.