Fix building from source on Windows

This commit is contained in:
mo8it 2025-01-01 22:01:39 +01:00
parent bde6f7470c
commit 0b55809bb9

6
build.rs Normal file
View file

@ -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`");
}