diff options
author | Jeffrey Vander Stoep <jeffv@google.com> | 2022-12-12 17:35:43 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-12-12 17:35:43 +0000 |
commit | 6a00ea1d4df9f862ca34c18d2e170b937214f0bf (patch) | |
tree | e42c475956b1f8d8a5bb7cc1abdf325436f2c9b8 | |
parent | b8518bd101722130e5efa1791c1c818fb680ec52 (diff) | |
parent | 0ad420f288b622d7b0cf2f02839bbb54dffe8965 (diff) | |
download | futures-test-6a00ea1d4df9f862ca34c18d2e170b937214f0bf.tar.gz |
Merge "Upgrade futures-test to 0.3.25" am: 8fda920158 am: 0ad420f288
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures-test/+/2337909
Change-Id: I0d21b53bae71a9320f7c9d1fe3018eba7c964d40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | Android.bp | 11 | ||||
-rw-r--r-- | Cargo.toml | 19 | ||||
-rw-r--r-- | Cargo.toml.orig | 18 | ||||
-rw-r--r-- | METADATA | 13 | ||||
-rw-r--r-- | src/future/mod.rs | 1 |
6 files changed, 35 insertions, 29 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index 77d8405..9948f93 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,6 +1,6 @@ { "git": { - "sha1": "fc1e3250219170e31cddb8857a276cba7dd08d44" + "sha1": "77d82198c5afd04af3e760a6aa50b7e875289fc3" }, "path_in_vcs": "futures-test" }
\ No newline at end of file @@ -1,8 +1,6 @@ // This file is generated by cargo2android.py --config cargo2android.json. // Do not modify this file as changes will be overridden on upgrade. - - package { default_applicable_licenses: ["external_rust_crates_futures-test_license"], } @@ -44,7 +42,7 @@ rust_test { host_supported: true, crate_name: "futures_test", cargo_env_compat: true, - cargo_pkg_version: "0.3.21", + cargo_pkg_version: "0.3.25", srcs: ["src/lib.rs"], test_suites: ["general-tests"], auto_gen_config: true, @@ -57,7 +55,6 @@ rust_test { "std", ], rustlibs: [ - "libfutures", "libfutures_core", "libfutures_executor", "libfutures_io", @@ -75,7 +72,7 @@ rust_library { host_supported: true, crate_name: "futures_test", cargo_env_compat: true, - cargo_pkg_version: "0.3.21", + cargo_pkg_version: "0.3.25", srcs: ["src/lib.rs"], edition: "2018", features: [ @@ -93,4 +90,8 @@ rust_library { "libpin_utils", ], proc_macros: ["libfutures_macro"], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], } @@ -13,11 +13,12 @@ edition = "2018" rust-version = "1.45" name = "futures-test" -version = "0.3.21" +version = "0.3.25" description = """ Common utilities for testing components built off futures-rs. """ homepage = "https://rust-lang.github.io/futures-rs" +readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/futures-rs" @@ -25,35 +26,35 @@ repository = "https://github.com/rust-lang/futures-rs" all-features = true [dependencies.futures-core] -version = "0.3.21" +version = "0.3.25" default-features = false [dependencies.futures-executor] -version = "0.3.21" +version = "0.3.25" default-features = false [dependencies.futures-io] -version = "0.3.21" +version = "0.3.25" default-features = false [dependencies.futures-macro] -version = "=0.3.21" +version = "=0.3.25" default-features = false [dependencies.futures-sink] -version = "0.3.21" +version = "0.3.25" default-features = false [dependencies.futures-task] -version = "0.3.21" +version = "0.3.25" default-features = false [dependencies.futures-util] -version = "0.3.21" +version = "0.3.25" default-features = false [dependencies.pin-project] -version = "1.0.1" +version = "1.0.11" [dependencies.pin-utils] version = "0.1.0" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index b5aa8a7..bd9fd22 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "futures-test" -version = "0.3.21" +version = "0.3.25" edition = "2018" rust-version = "1.45" license = "MIT OR Apache-2.0" @@ -11,15 +11,15 @@ Common utilities for testing components built off futures-rs. """ [dependencies] -futures-core = { version = "0.3.21", path = "../futures-core", default-features = false } -futures-task = { version = "0.3.21", path = "../futures-task", default-features = false } -futures-io = { version = "0.3.21", path = "../futures-io", default-features = false } -futures-util = { version = "0.3.21", path = "../futures-util", default-features = false } -futures-executor = { version = "0.3.21", path = "../futures-executor", default-features = false } -futures-sink = { version = "0.3.21", path = "../futures-sink", default-features = false } -futures-macro = { version = "=0.3.21", path = "../futures-macro", default-features = false } +futures-core = { version = "0.3.25", path = "../futures-core", default-features = false } +futures-task = { version = "0.3.25", path = "../futures-task", default-features = false } +futures-io = { version = "0.3.25", path = "../futures-io", default-features = false } +futures-util = { version = "0.3.25", path = "../futures-util", default-features = false } +futures-executor = { version = "0.3.25", path = "../futures-executor", default-features = false } +futures-sink = { version = "0.3.25", path = "../futures-sink", default-features = false } +futures-macro = { version = "=0.3.25", path = "../futures-macro", default-features = false } pin-utils = { version = "0.1.0", default-features = false } -pin-project = "1.0.1" +pin-project = "1.0.11" [dev-dependencies] futures = { path = "../futures", default-features = false, features = ["std", "executor"] } @@ -1,3 +1,7 @@ +# This project was upgraded with external_updater. +# Usage: tools/external_updater/updater.sh update rust/crates/futures-test +# For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md + name: "futures-test" description: "()" third_party { @@ -7,14 +11,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/futures-test/futures-test-0.3.21.crate" + value: "https://static.crates.io/crates/futures-test/futures-test-0.3.25.crate" } - version: "0.3.21" - # Dual-licensed, using the least restrictive per go/thirdpartylicenses#same. + version: "0.3.25" license_type: NOTICE last_upgrade_date { year: 2022 - month: 6 - day: 22 + month: 12 + day: 12 } } diff --git a/src/future/mod.rs b/src/future/mod.rs index ee5c6dd..0f52f62 100644 --- a/src/future/mod.rs +++ b/src/future/mod.rs @@ -68,6 +68,7 @@ pub trait FutureTestExt: Future { /// /// assert_eq!(rx.await, Ok(5)); /// # }); + /// # std::thread::sleep(std::time::Duration::from_millis(500)); // wait for background threads closed: https://github.com/rust-lang/miri/issues/1371 /// ``` fn run_in_background(self) where |