Skip to content

Commit b5bb7f1

Browse files
author
Trevor Miranda
committed
Update README to reflect deprecation of cURL.
1 parent 0afbf1c commit b5bb7f1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,16 @@ If you need a more complex setup, rustup supports the convention used by
530530
the __curl__ program, documented in the ENVIRONMENT section of
531531
[its manual page][curlman].
532532

533-
Note that some versions of `libcurl` apparently require you to drop the
534-
`http://` or `https://` prefix in environment variables. For example,
535-
`export http_proxy=proxy.example.com:1080` (and likewise for HTTPS).
533+
The use of `curl` is presently **deprecated**, however it can still be used by
534+
providing the `RUSTUP_USE_CURL` environment variable, for example:
535+
536+
```
537+
RUSTUP_USE_CURL=1 rustup update
538+
```
539+
540+
Note that some versions of `libcurl` apparently require you to drop the
541+
`http://` or `https://` prefix in environment variables. For example,
542+
`export http_proxy=proxy.example.com:1080` (and likewise for HTTPS).
536543
If you are getting an SSL `unknown protocol` error from `rustup` via `libcurl`
537544
but the command-line `curl` command works fine, this may be the problem.
538545

0 commit comments

Comments
 (0)