Skip to content

Commit 778dacc

Browse files
committed
fix: use copy_with_cp everywhere
1 parent dfce1c5 commit 778dacc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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
)
@@ -395,7 +395,7 @@ fn copy_multiple_ciphers(target: &str, out_dir: &str, out_path: &Path) {
395395
build_multiple_ciphers(target, out_path);
396396
}
397397

398-
std::fs::copy(dylib, format!("{out_dir}/libsqlite3mc.a")).unwrap();
398+
copy_with_cp(dylib, format!("{out_dir}/libsqlite3mc.a")).unwrap();
399399
println!("cargo:rustc-link-lib=static=sqlite3mc");
400400
println!("cargo:rustc-link-search={out_dir}");
401401
}
@@ -411,9 +411,9 @@ fn build_multiple_ciphers(target: &str, out_path: &Path) {
411411
bindings::write_to_out_dir(header, bindgen_rs_path.as_ref());
412412
}
413413
let dir = env!("CARGO_MANIFEST_DIR");
414-
std::fs::copy(format!("{dir}/{bindgen_rs_path}"), out_path).unwrap();
414+
copy_with_cp(format!("{dir}/{bindgen_rs_path}"), out_path).unwrap();
415415

416-
std::fs::copy(
416+
copy_with_cp(
417417
(BUNDLED_DIR.as_ref() as &Path)
418418
.join("src")
419419
.join("sqlite3.c"),

0 commit comments

Comments
 (0)