Skip to content

Commit 2dcf2f0

Browse files
committed
Only install rustc-dev by default on nightly
1 parent bd4e9d5 commit 2dcf2f0

File tree

1 file changed

+9
-1
lines changed
  • src/tools/build-manifest/src

1 file changed

+9
-1
lines changed

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ impl Builder {
474474
// and so is rust-mingw if it's available for the target.
475475
components.extend(vec![
476476
host_component("rustc"),
477-
host_component("rustc-dev"),
478477
host_component("rust-std"),
479478
host_component("cargo"),
480479
host_component("rust-docs"),
@@ -483,6 +482,15 @@ impl Builder {
483482
components.push(host_component("rust-mingw"));
484483
}
485484

485+
// The compiler libraries are not stable for end users, but `rustc-dev` was only recently
486+
// split out of `rust-std`. We'll include it by default as a transition for nightly users,
487+
// but ship it as an optional component on the beta and stable channels.
488+
if self.rust_release == "nightly" {
489+
components.push(host_component("rustc-dev"));
490+
} else {
491+
extensions.push(host_component("rustc-dev"));
492+
}
493+
486494
// Tools are always present in the manifest,
487495
// but might be marked as unavailable if they weren't built.
488496
extensions.extend(vec![

0 commit comments

Comments
 (0)