mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-13 08:13:21 +00:00
include Cargo.{toml,lock} in rust-src tarball
This commit is contained in:
parent
a12e4f8098
commit
8cd4cacbc7
@ -724,6 +724,10 @@ impl Step for Src {
|
||||
let dst_src = dst.join("rust");
|
||||
t!(fs::create_dir_all(&dst_src));
|
||||
|
||||
let src_files = [
|
||||
"src/Cargo.toml",
|
||||
"src/Cargo.lock",
|
||||
];
|
||||
// This is the reduced set of paths which will become the rust-src component
|
||||
// (essentially libstd and all of its path dependencies)
|
||||
let std_src_dirs = [
|
||||
@ -759,6 +763,9 @@ impl Step for Src {
|
||||
];
|
||||
|
||||
copy_src_dirs(build, &std_src_dirs[..], &std_src_dirs_exclude[..], &dst_src);
|
||||
for file in src_files.iter() {
|
||||
copy(&build.src.join(file), &dst_src.join(file));
|
||||
}
|
||||
|
||||
// Create source tarball in rust-installer format
|
||||
let mut cmd = rust_installer(builder);
|
||||
|
Loading…
Reference in New Issue
Block a user