File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,6 @@ offline = false
148148[http]
149149timeout = 600
150150low-speed-limit = 1024
151- low-speed-time = 30
152151multiplexing = false
153152
154153[build]
Original file line number Diff line number Diff line change @@ -126,6 +126,13 @@ function Configure-RustEnvironment {
126126
127127 # 2. Create comprehensive Cargo configuration
128128 $configFile = " $cargoHome \config.toml"
129+
130+ # Remove any existing config file first to ensure clean state
131+ if (Test-Path $configFile ) {
132+ Write-Host " Removing existing Cargo config to ensure clean state..." - ForegroundColor Gray
133+ Remove-Item $configFile - Force - ErrorAction SilentlyContinue
134+ }
135+
129136 $configContent = @"
130137# Optimized Cargo configuration for Windows builds
131138[net]
@@ -135,7 +142,6 @@ offline = false # Allow network access
135142[http]
136143timeout = 600 # 10 minute timeout for large downloads
137144low-speed-limit = 1024 # Minimum 1KB/s (fail if slower)
138- low-speed-time = 30 # Allow slow speeds for up to 30 seconds
139145multiplexing = false # Disable HTTP/2 multiplexing (avoids some Windows issues)
140146
141147[build]
File renamed without changes.
You can’t perform that action at this time.
0 commit comments