Skip to content

Commit 9850858

Browse files
authored
Merge pull request #120 from xoolive/patch-1
Take proxy environment variables into account
2 parents faabaff + 60a1926 commit 9850858

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ They can be set as environment variables for `cargo build` using the `OPENBLAS_`
6767
prefix as follows: `OPENBLAS_CC`, `OPENBLAS_FC`, `OPENBLAS_HOSTCC`, and
6868
`OPENBLAS_TARGET`.
6969

70+
## Proxy issues
71+
72+
The `openblas-src` crate will detect and use proxy settings from your environment variables, such as `http_proxy` and `https_proxy` to download necessary dependencies.
73+
7074
## Contribution
7175

7276
Your contribution is highly appreciated. Do not hesitate to open an issue or a

openblas-build/src/download.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ fn get_agent() -> ureq::Agent {
3030
.tls_connector(std::sync::Arc::new(
3131
native_tls::TlsConnector::new().expect("failed to create TLS connector"),
3232
))
33+
.try_proxy_from_env(true)
3334
.build()
3435
}

0 commit comments

Comments
 (0)