diff --git a/docker/setup/rustup.sh b/docker/setup/rustup.sh index 84df40b9..43bb3589 100755 --- a/docker/setup/rustup.sh +++ b/docker/setup/rustup.sh @@ -22,6 +22,9 @@ main() { rustup target add "$RUST_TARGET" chmod -R a+w "$RUSTUP_HOME" "$CARGO_HOME" + # Use git CLI to fetch crates (avoid memory issues in QEMU environments) + printf "[net]\ngit-fetch-with-cli = true" >> "$CARGO_HOME/config.toml" + # Pre-fetch the registry index cargo init --name tmp . cargo fetch