Skip to content

Commit 7865a85

Browse files
committed
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]: #90227 (comment) Note: I chose rayon 1.3.1 so that the rayon version used elsewhere in the workspace does not change.
1 parent c390d69 commit 7865a85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -4615,8 +4615,8 @@ dependencies = [
46154615
"itertools 0.9.0",
46164616
"minifier",
46174617
"pulldown-cmark 0.8.0",
4618+
"rayon",
46184619
"regex",
4619-
"rustc-rayon",
46204620
"rustdoc-json-types",
46214621
"serde",
46224622
"serde_json",

src/librustdoc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ path = "lib.rs"
1010
arrayvec = { version = "0.7", default-features = false }
1111
pulldown-cmark = { version = "0.8", default-features = false }
1212
minifier = "0.0.41"
13-
rayon = { version = "0.3.0", package = "rustc-rayon" }
13+
rayon = "1.3.1"
1414
serde = { version = "1.0", features = ["derive"] }
1515
serde_json = "1.0"
1616
smallvec = "1.6.1"

0 commit comments

Comments
 (0)