Skip to content

Commit 5e20bd3

Browse files
committed
fix: use copy_with_cp everywhere
1 parent 7a941c6 commit 5e20bd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libsql-ffi/build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ fn make_amalgamation() {
103103
.output()
104104
.unwrap();
105105

106-
std::fs::copy(
106+
copy_with_cp(
107107
(SQLITE_DIR.as_ref() as &Path).join("sqlite3.c"),
108108
(BUNDLED_DIR.as_ref() as &Path).join("src/sqlite3.c"),
109109
)
110110
.unwrap();
111-
std::fs::copy(
111+
copy_with_cp(
112112
(SQLITE_DIR.as_ref() as &Path).join("sqlite3.h"),
113113
(BUNDLED_DIR.as_ref() as &Path).join("src/sqlite3.h"),
114114
)
@@ -399,7 +399,7 @@ fn copy_multiple_ciphers(target: &str, out_dir: &str, out_path: &Path) {
399399
build_multiple_ciphers(target, out_path);
400400
}
401401

402-
std::fs::copy(dylib, format!("{out_dir}/libsqlite3mc.a")).unwrap();
402+
copy_with_cp(dylib, format!("{out_dir}/libsqlite3mc.a")).unwrap();
403403
println!("cargo:rustc-link-lib=static=sqlite3mc");
404404
println!("cargo:rustc-link-search={out_dir}");
405405
}
@@ -415,9 +415,9 @@ fn build_multiple_ciphers(target: &str, out_path: &Path) {
415415
bindings::write_to_out_dir(header, bindgen_rs_path.as_ref());
416416
}
417417
let dir = env!("CARGO_MANIFEST_DIR");
418-
std::fs::copy(format!("{dir}/{bindgen_rs_path}"), out_path).unwrap();
418+
copy_with_cp(format!("{dir}/{bindgen_rs_path}"), out_path).unwrap();
419419

420-
std::fs::copy(
420+
copy_with_cp(
421421
(BUNDLED_DIR.as_ref() as &Path)
422422
.join("src")
423423
.join("sqlite3.c"),

0 commit comments

Comments
 (0)