File tree 1 file changed +15
-0
lines changed
src/tools/build-manifest/src
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -427,6 +427,13 @@ impl Builder {
427
427
"rls-preview" , "rust-src" , "llvm-tools-preview" ,
428
428
"lldb-preview" , "rust-analysis" , "miri-preview"
429
429
] ) ;
430
+
431
+ // The compiler libraries are not stable for end users, but `rustc-dev` was only recently
432
+ // split out of `rust-std`. We'll include it by default as a transition for nightly users.
433
+ if self . rust_release == "nightly" {
434
+ self . extend_profile ( "default" , & mut manifest. profiles , & [ "rustc-dev" ] ) ;
435
+ self . extend_profile ( "complete" , & mut manifest. profiles , & [ "rustc-dev" ] ) ;
436
+ }
430
437
}
431
438
432
439
fn add_renames_to ( & self , manifest : & mut Manifest ) {
@@ -549,6 +556,14 @@ impl Builder {
549
556
dst. insert ( profile_name. to_owned ( ) , pkgs. iter ( ) . map ( |s| ( * s) . to_owned ( ) ) . collect ( ) ) ;
550
557
}
551
558
559
+ fn extend_profile ( & mut self ,
560
+ profile_name : & str ,
561
+ dst : & mut BTreeMap < String , Vec < String > > ,
562
+ pkgs : & [ & str ] ) {
563
+ dst. get_mut ( profile_name) . expect ( "existing profile" )
564
+ . extend ( pkgs. iter ( ) . map ( |s| ( * s) . to_owned ( ) ) ) ;
565
+ }
566
+
552
567
fn package ( & mut self ,
553
568
pkgname : & str ,
554
569
dst : & mut BTreeMap < String , Package > ,
You can’t perform that action at this time.
0 commit comments