--- ./build/fbcode_builder/CMake/RustStaticLibrary.cmake.orig	2023-05-16 04:58:25.000000000 -0400
+++ ./build/fbcode_builder/CMake/RustStaticLibrary.cmake	2023-05-16 04:59:14.000000000 -0400
@@ -122,9 +122,9 @@
   set(rust_staticlib "${CMAKE_CURRENT_BINARY_DIR}/${target_dir}/${staticlib_name}")
 
   if(DEFINED ARG_FEATURES)
-    set(cargo_flags build $<IF:$<CONFIG:Debug>,,--release> -p ${crate_name} --features ${ARG_FEATURES})
+    set(cargo_flags build --offline $<IF:$<CONFIG:Debug>,,--release> -p ${crate_name} --features ${ARG_FEATURES})
   else()
-    set(cargo_flags build $<IF:$<CONFIG:Debug>,,--release> -p ${crate_name})
+    set(cargo_flags build --offline $<IF:$<CONFIG:Debug>,,--release> -p ${crate_name})
   endif()
   if(USE_CARGO_VENDOR)
     set(extra_cargo_env "CARGO_HOME=${RUST_CARGO_HOME}")
@@ -193,9 +193,9 @@
   endif()
 
   if(DEFINED ARG_FEATURES)
-    set(cargo_flags build $<IF:$<CONFIG:Debug>,,--release> -p ${crate_name} --features ${ARG_FEATURES})
+    set(cargo_flags build --offline $<IF:$<CONFIG:Debug>,,--release> -p ${crate_name} --features ${ARG_FEATURES})
   else()
-    set(cargo_flags build $<IF:$<CONFIG:Debug>,,--release> -p ${crate_name})
+    set(cargo_flags build --offline $<IF:$<CONFIG:Debug>,,--release> -p ${crate_name})
   endif()
   if(USE_CARGO_VENDOR)
     set(extra_cargo_env "CARGO_HOME=${RUST_CARGO_HOME}")
