message: Improved Rust installation
diff: @@ -15,24 +15,24 @@ steps:
  echo "##vso[task.prependpath]$HOME/.cargo/bin"
  fi
  displayName: "Install Rust (Linux, macOS)"
  - condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
  + condition: ne(variables['Agent.OS'], 'Windows_NT')
  - - bash: |
  - set -ex
  - if [ -x "`command -v rustup`" ]; then
  - echo `command -v rustup` `rustup -V` installed
  - else
  - choco install rust -y
  - # curl -sSf -o rustup-init.exe https://win.rustup.rs
  - # ./rustup-init.exe -y --default-toolchain $RUST_TOOLCHAIN
  - # echo "##vso[task.prependpath]$USERPROFILE/.cargo/bin"
  - fi
  - displayName: "Install Rust (Windows)"
  - condition: eq(variables['Agent.OS'], 'Windows_NT')
  + # - bash: |
  + # set -ex
  + # if [ -x "`command -v rustup`" ]; then
  + # echo `command -v rustup` `rustup -V` installed
  + # else
  + # choco install rust -y
  + # # curl -sSf -o rustup-init.exe https://win.rustup.rs
  + # # ./rustup-init.exe -y --default-toolchain $RUST_TOOLCHAIN
  + # # echo "##vso[task.prependpath]$USERPROFILE/.cargo/bin"
  + # fi
  + # displayName: "Install Rust (Windows)"
  + # condition: eq(variables['Agent.OS'], 'Windows_NT')
  - bash: |
  set -ex
  - rustup update $RUST_TOOLCHAIN
  + rustup update --no-self-update $RUST_TOOLCHAIN
  rustup default $RUST_TOOLCHAIN
  rustc -Vv
  