Skip to content

Commit 0b55809

Browse files
committed
Fix building from source on Windows
1 parent bde6f74 commit 0b55809

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fn main() {
2+
// Fix building from source on Windows because it can't handle file links.
3+
#[cfg(windows)]
4+
std::fs::copy("dev/Cargo.toml", "dev-Cargo.toml")
5+
.expect("Failed to copy the file `dev/Cargo.toml` to `dev-Cargo.toml`");
6+
}

0 commit comments

Comments
 (0)