From 7865a85eb6f11750a0e203538eac4c38df5b48b9 Mon Sep 17 00:00:00 2001 From: Noah Lev Date: Thu, 28 Oct 2021 18:19:01 -0700 Subject: [PATCH] rustdoc: Switch to mainline rayon The rustc fork of rayon integrates with Cargo's jobserver to limit the amount of parallelism. However, rustdoc's use case is concurrent I/O, which is not CPU-heavy, so it should be able to use mainline rayon. See this discussion [1] for more details. [1]: https://github.com/rust-lang/rust/issues/90227#issuecomment-952468618 Note: I chose rayon 1.3.1 so that the rayon version used elsewhere in the workspace does not change. --- Cargo.lock | 2 +- src/librustdoc/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bf19f5e0ae32f..0ffc5bdd23740 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4615,8 +4615,8 @@ dependencies = [ "itertools 0.9.0", "minifier", "pulldown-cmark 0.8.0", + "rayon", "regex", - "rustc-rayon", "rustdoc-json-types", "serde", "serde_json", diff --git a/src/librustdoc/Cargo.toml b/src/librustdoc/Cargo.toml index 945b2a8e9a80e..268905bcb5339 100644 --- a/src/librustdoc/Cargo.toml +++ b/src/librustdoc/Cargo.toml @@ -10,7 +10,7 @@ path = "lib.rs" arrayvec = { version = "0.7", default-features = false } pulldown-cmark = { version = "0.8", default-features = false } minifier = "0.0.41" -rayon = { version = "0.3.0", package = "rustc-rayon" } +rayon = "1.3.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" smallvec = "1.6.1"