Skip to content

Commit 35f8987

Browse files
Add rustc-docs as a component
Previously it was listed as a package but wasn't available in the component lists in rustup, so wasn't actually installable. rustc-docs is also only present for x86_64-unknown-linux-gnu. Eventually it'll also be shipped for aarch64-gnu with current CI configuration, but that builder isn't quite up and running yet. We probably want to ship compiler docs for other platforms as well, though, but this commit doesn't enable that quite yet. A future PR may do so by adding --enable-compiler-docs to the relevant builders (but it would also need to decide the set of builders which we'd ship on).
1 parent 7996182 commit 35f8987

File tree

1 file changed

+2
-0
lines changed
  • src/tools/build-manifest/src

1 file changed

+2
-0
lines changed

src/tools/build-manifest/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ impl Builder {
501501
// for users to install the additional component manually, if needed.
502502
if self.rust_release == "nightly" {
503503
self.extend_profile("complete", &mut manifest.profiles, &["rustc-dev"]);
504+
self.extend_profile("complete", &mut manifest.profiles, &["rustc-docs"]);
504505
}
505506
}
506507

@@ -576,6 +577,7 @@ impl Builder {
576577
.map(|target| Component::from_str("rust-std", target)),
577578
);
578579
extensions.extend(HOSTS.iter().map(|target| Component::from_str("rustc-dev", target)));
580+
extensions.extend(HOSTS.iter().map(|target| Component::from_str("rustc-docs", target)));
579581
extensions.push(Component::from_str("rust-src", "*"));
580582

581583
// If the components/extensions don't actually exist for this

0 commit comments

Comments
 (0)