Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
fn main() {
// Fix building from source on Windows because it can't handle file links.
// Windows does not support the file links used by Rustlings when building
// from source, so copy the development manifest instead.
#[cfg(windows)]
let _ = std::fs::copy("dev/Cargo.toml", "dev-Cargo.toml");
if let Err(err) = std::fs::copy("dev/Cargo.toml", "dev-Cargo.toml") {
panic!("failed to copy dev/Cargo.toml: {err}");
}
}
Loading