We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a12e4f8 commit 8cd4cacCopy full SHA for 8cd4cac
src/bootstrap/dist.rs
@@ -724,6 +724,10 @@ impl Step for Src {
724
let dst_src = dst.join("rust");
725
t!(fs::create_dir_all(&dst_src));
726
727
+ let src_files = [
728
+ "src/Cargo.toml",
729
+ "src/Cargo.lock",
730
+ ];
731
// This is the reduced set of paths which will become the rust-src component
732
// (essentially libstd and all of its path dependencies)
733
let std_src_dirs = [
@@ -759,6 +763,9 @@ impl Step for Src {
759
763
];
760
764
761
765
copy_src_dirs(build, &std_src_dirs[..], &std_src_dirs_exclude[..], &dst_src);
766
+ for file in src_files.iter() {
767
+ copy(&build.src.join(file), &dst_src.join(file));
768
+ }
762
769
770
// Create source tarball in rust-installer format
771
let mut cmd = rust_installer(builder);
0 commit comments