From 9fa75751aa589c84cd5f15ae497b19a43e921c5f Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 11 Nov 2019 08:39:25 +0100 Subject: [PATCH] Add dev-install alias to make longer user testing easier Signed-off-by: Daniel Silverstone --- .cargo/config | 3 +++ CONTRIBUTING.md | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000000..610dd9189f --- /dev/null +++ b/.cargo/config @@ -0,0 +1,3 @@ +[alias] +dev-install = "run -- --no-modify-path -y" + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2999b69b13..18a9cbe29f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,6 +20,10 @@ affecting any existing installation. Remember to keep those two environment vari set when running your compiled `rustup-init` or the toolchains it installs, but _unset_ when rebuilding `rustup` itself. +If you wish to install your new build to try out longer term in your home directory +then you can run `cargo dev-install` which is an alias in `.cargo/config` which +runs `cargo run -- --no-modify-path -y` to install your build into your homedir. + We use `rustfmt` to keep our codebase consistently formatted. Please ensure that you have correctly formatted your code (most editors will do this automatically when saving) or it may not pass the CI tests.