Skip to content

Commit

Permalink
Fix building from source on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Jan 1, 2025
1 parent bde6f74 commit 0b55809
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fn main() {
// Fix building from source on Windows because it can't handle file links.
#[cfg(windows)]
std::fs::copy("dev/Cargo.toml", "dev-Cargo.toml")
.expect("Failed to copy the file `dev/Cargo.toml` to `dev-Cargo.toml`");
}

0 comments on commit 0b55809

Please sign in to comment.