From f8847060e4a1c177de42313831008c9932ee9799 Mon Sep 17 00:00:00 2001 From: Sam Marshall Date: Sat, 1 Apr 2017 17:23:30 +0100 Subject: [PATCH 1/2] Fix #994 - document installing to a custom location including the CARGO_HOME and RUSTUP_HOME environment variables --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 715da53086..e3e4e0063d 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,22 @@ For `zsh`, you must then add the following line in your `~/.zshrc` before fpath+=~/.zfunc ``` +#### Choosing where to install + +`rustup` allows you to customise your installation by setting the environment +variables `CARGO_HOME` and `RUSTUP_HOME` while running the `rustup-init` +executable. As mentioned in the [Environment Variables] section, `RUSTUP_HOME` +sets the root rustup folder, which is used for storing installed +toolchains and configuration options. `CARGO_HOME` contains cache files used +by [cargo]. + +Note that you will need to ensure these environment variables are always +set and that `CARGO_HOME/bin` is in the `$PATH` environment variable when +using the toolchain. + +[Environment Variables]: #environment-variables +[cargo]: https://github.com/rust-lang/cargo + ## How rustup works `rustup` is a *toolchain multiplexer*. It installs and manages many From 205608c442faf8d7ad1269b00c8feb88f03ebb61 Mon Sep 17 00:00:00 2001 From: Sam Marshall Date: Sat, 1 Apr 2017 17:51:59 +0100 Subject: [PATCH 2/2] make clearer by swapping 'while' for 'before' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e3e4e0063d..b154da92ff 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ fpath+=~/.zfunc #### Choosing where to install `rustup` allows you to customise your installation by setting the environment -variables `CARGO_HOME` and `RUSTUP_HOME` while running the `rustup-init` +variables `CARGO_HOME` and `RUSTUP_HOME` before running the `rustup-init` executable. As mentioned in the [Environment Variables] section, `RUSTUP_HOME` sets the root rustup folder, which is used for storing installed toolchains and configuration options. `CARGO_HOME` contains cache files used