diff --git a/README.md b/README.md index ca1f5259f9..b323707ea1 100644 --- a/README.md +++ b/README.md @@ -585,6 +585,20 @@ at your option. 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request :D +For developing on `rustup` itself, you may want to install into a temporary +directory, with a series of commands similar to this: + +```bash +$ cargo build +$ mkdir home +$ RUSTUP_HOME=home CARGO_HOME=home target/debug/rustup-init --no-modify-path -y +``` + +You can then try out `rustup` with your changes by running `home/bin/rustup`, without +affecting any existing installation. Remember to keep those two environment variables +set when running your compiled `rustup-init` or the toolchains it installs, but _unset_ +when rebuilding `rustup` itself. + Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any