Cargo Timeout While Downloading

I have currently issues with getting a stable internet connection (including a very slow internet connection) and I'm getting a timeout, because:

(failed to download any data for libsqlite3-sys v0.18.0 within 30s)

This happens during cargo build. Is there any way to increase the time to reach a timeout to 60s+?

Looking at these lines in cargo source code, I suspect calling

HTTP_TIMEOUT=60 cargo build

might do the trick. The timeout is first read from a CargoHttpConfig whose origin I didn't manage to track, then from the environment, and finally it defaults to 30. Hopefully, the CargoHttpConfig doesn't have any value for the timeout, hence the value from the environment gets used.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.