summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-01-01 22:01:39 +0100
committermo8it <mo8it@proton.me>2025-01-01 22:01:39 +0100
commit0b55809bb9c75ecdb5018e214a5ee3aa0363348f (patch)
tree9c56c1768360725b28bd66242f0f7cb91c25b2e3
parentbde6f7470c651c1d608eda6a18940b092a982184 (diff)
Fix building from source on Windows
-rw-r--r--build.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..79a1fad
--- /dev/null
+++ b/build.rs
@@ -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`");
+}