Repository: peterheesterman/chit (language: rust)

Issue:
rustup 1.20.0 Profiles
**Context**
With the release of rustup 1.20.0 a new profiles feature is supported:

https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html#profiles

The suggestion for CI is to use a minimal profile, to speed up build times.

**Solution**
Update the *.yml files to support this.


Discussion / hints:

Fix patch:
diff --git a/ci/azure-install-rust.yml b/ci/azure-install-rust.yml
index 9cf429c..5a033ae 100644
--- a/ci/azure-install-rust.yml
+++ b/ci/azure-install-rust.yml
@@ -5,7 +5,7 @@ steps:
   # Linux and macOS.
   - script: |
       set -e
-      curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
+      curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain $RUSTUP_TOOLCHAIN
       echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
     env:
       RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
@@ -15,7 +15,8 @@ steps:
   # Windows.
   - script: |
       curl -sSf -o rustup-init.exe https://win.rustup.rs
-      rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
+      rustup-init.exe -y --profile minimal --default-toolchain %RUSTUP_TOOLCHAIN%
+      rustup target list
       set PATH=%PATH%;%USERPROFILE%\.cargo\bin
       echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
     env:


Test patch: