File disable-downloads.patch of Package rusty_v8
diff -ruN rusty_v8-140.0.0.orig/build.rs rusty_v8-140.0.0/build.rs
--- rusty_v8-140.0.0.orig/build.rs 2025-09-26 14:44:49.983542834 +0800
+++ rusty_v8-140.0.0/build.rs 2025-10-03 18:56:13.747042768 +0800
@@ -120,7 +120,7 @@
print_prebuilt_src_binding_path();
- download_static_lib_binaries();
+ // download_static_lib_binaries();
}
fn acquire_lock() -> LockFile {
@@ -184,10 +184,10 @@
}
if need_gn_ninja_download() {
- download_ninja_gn_binaries();
+ // download_ninja_gn_binaries();
}
- download_rust_toolchain();
+ // download_rust_toolchain();
// `#[cfg(...)]` attributes don't work as expected from build.rs -- they refer to the configuration
// of the host system which the build.rs script will be running on. In short, `cfg!(target_<os/arch>)`