diff options
author | Chih-Hung Hsieh <chh@google.com> | 2020-10-26 22:06:45 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-10-26 22:06:45 +0000 |
commit | 3345d18b83e775e1677234d75d827278a83970a2 (patch) | |
tree | e0f486a2790708f3741fee727b9c37b06d6ab188 | |
parent | 867ad8f0110accf0f17836c4e26486ed53923d37 (diff) | |
parent | 944da31b554b928c16497602ac9021d74fd1886c (diff) | |
download | futures-executor-3345d18b83e775e1677234d75d827278a83970a2.tar.gz |
Upgrade rust/crates/futures-executor to 0.3.7 am: 3bb9be127b am: 63af55e332 am: 581bbf797f am: 944da31b55
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/futures-executor/+/1473477
Change-Id: Iba763351fd12bf02b24dbd4168c7fbef272e686c
-rw-r--r-- | Android.bp | 16 | ||||
-rw-r--r-- | Cargo.toml | 11 | ||||
-rw-r--r-- | Cargo.toml.orig | 11 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | src/lib.rs | 11 | ||||
-rw-r--r-- | src/thread_pool.rs | 2 |
6 files changed, 36 insertions, 23 deletions
@@ -18,15 +18,15 @@ rust_library { } // dependent_library ["feature_list"] -// futures-core-0.3.5 "alloc,std" -// futures-task-0.3.5 "alloc,once_cell,std" -// futures-util-0.3.5 "alloc,slab,std" -// once_cell-1.4.0 "std" -// pin-project-0.4.22 -// pin-project-internal-0.4.22 +// futures-core-0.3.7 "alloc,std" +// futures-task-0.3.7 "alloc,once_cell,std" +// futures-util-0.3.7 "alloc,slab,std" +// once_cell-1.4.1 "std" +// pin-project-1.0.1 +// pin-project-internal-1.0.1 // pin-utils-0.1.0 -// proc-macro2-1.0.18 "default,proc-macro" +// proc-macro2-1.0.24 "default,proc-macro" // quote-1.0.7 "default,proc-macro" // slab-0.4.2 -// syn-1.0.34 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut" +// syn-1.0.48 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut" // unicode-xid-0.2.1 "default" @@ -13,25 +13,26 @@ [package] edition = "2018" name = "futures-executor" -version = "0.3.5" +version = "0.3.7" authors = ["Alex Crichton <alex@alexcrichton.com>"] description = "Executors for asynchronous tasks based on the futures-rs library.\n" homepage = "https://rust-lang.github.io/futures-rs" -documentation = "https://docs.rs/futures-executor/0.3.5" +documentation = "https://docs.rs/futures-executor/0.3.7" license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/futures-rs" [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] [dependencies.futures-core] -version = "0.3.5" +version = "0.3.7" default-features = false [dependencies.futures-task] -version = "0.3.5" +version = "0.3.7" default-features = false [dependencies.futures-util] -version = "0.3.5" +version = "0.3.7" default-features = false [dependencies.num_cpus] diff --git a/Cargo.toml.orig b/Cargo.toml.orig index ad6aa34..579ee9a 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,12 +1,12 @@ [package] name = "futures-executor" edition = "2018" -version = "0.3.5" +version = "0.3.7" authors = ["Alex Crichton <alex@alexcrichton.com>"] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/futures-rs" homepage = "https://rust-lang.github.io/futures-rs" -documentation = "https://docs.rs/futures-executor/0.3.5" +documentation = "https://docs.rs/futures-executor/0.3.7" description = """ Executors for asynchronous tasks based on the futures-rs library. """ @@ -17,10 +17,11 @@ std = ["futures-core/std", "futures-task/std", "futures-util/std"] thread-pool = ["std", "num_cpus"] [dependencies] -futures-core = { path = "../futures-core", version = "0.3.5", default-features = false } -futures-task = { path = "../futures-task", version = "0.3.5", default-features = false } -futures-util = { path = "../futures-util", version = "0.3.5", default-features = false } +futures-core = { path = "../futures-core", version = "0.3.7", default-features = false } +futures-task = { path = "../futures-task", version = "0.3.7", default-features = false } +futures-util = { path = "../futures-util", version = "0.3.7", default-features = false } num_cpus = { version = "1.8.0", optional = true } [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] @@ -7,13 +7,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/futures-executor/futures-executor-0.3.5.crate" + value: "https://static.crates.io/crates/futures-executor/futures-executor-0.3.7.crate" } - version: "0.3.5" + version: "0.3.7" license_type: NOTICE last_upgrade_date { year: 2020 - month: 5 - day: 8 + month: 10 + day: 25 } } @@ -10,9 +10,16 @@ #![cfg_attr(test, warn(single_use_lifetimes))] #![warn(clippy::all)] +// mem::take requires Rust 1.40, matches! requires Rust 1.42 +// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941 +// get's implemented. +#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)] + #![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))] -#![doc(html_root_url = "https://docs.rs/futures-executor/0.3.5")] +#![doc(html_root_url = "https://docs.rs/futures-executor/0.3.7")] + +#![cfg_attr(docsrs, feature(doc_cfg))] #[cfg(feature = "std")] mod local_pool; @@ -23,9 +30,11 @@ pub use crate::local_pool::{block_on, block_on_stream, BlockingStream, LocalPool #[cfg(feature = "std")] mod unpark_mutex; #[cfg(feature = "thread-pool")] +#[cfg_attr(docsrs, doc(cfg(feature = "thread-pool")))] #[cfg(feature = "std")] mod thread_pool; #[cfg(feature = "thread-pool")] +#[cfg_attr(docsrs, doc(cfg(feature = "thread-pool")))] #[cfg(feature = "std")] pub use crate::thread_pool::{ThreadPool, ThreadPoolBuilder}; diff --git a/src/thread_pool.rs b/src/thread_pool.rs index 78a225f..3247aa3 100644 --- a/src/thread_pool.rs +++ b/src/thread_pool.rs @@ -24,6 +24,7 @@ use std::thread; /// /// This type is only available when the `thread-pool` feature of this /// library is activated. +#[cfg_attr(docsrs, doc(cfg(feature = "thread-pool")))] pub struct ThreadPool { state: Arc<PoolState>, } @@ -32,6 +33,7 @@ pub struct ThreadPool { /// /// This type is only available when the `thread-pool` feature of this /// library is activated. +#[cfg_attr(docsrs, doc(cfg(feature = "thread-pool")))] pub struct ThreadPoolBuilder { pool_size: usize, stack_size: usize, |