diff --git a/crates/build/re_build_tools/src/lib.rs b/crates/build/re_build_tools/src/lib.rs index f4f6050f24f1..d66292055554 100644 --- a/crates/build/re_build_tools/src/lib.rs +++ b/crates/build/re_build_tools/src/lib.rs @@ -289,7 +289,12 @@ pub fn cargo_metadata() -> anyhow::Result { "Can't get metadata during crate publishing - it would create a Cargo.lock file" ); - Ok(cargo_metadata::MetadataCommand::new().exec()?) + Ok(cargo_metadata::MetadataCommand::new() + .no_deps() + // Make sure this works without a connection, since docs.rs won't have one either. + // See https://github.com/rerun-io/rerun/issues/8165 + .other_options(vec!["--frozen".to_owned()]) + .exec()?) } /// Returns a list of all the enabled features of the given package.