steps:
- bash: |
set -e -x
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
source $HOME/.cargo/env
echo "##vso[task.prependpath]$HOME/.cargo/bin"
rustup --version
displayName: Install rustup
condition: eq(variables['Agent.OS'], 'Darwin')
- bash: |
set -e -x
rustup --version
rustup default $TOOLCHAIN
rustup update --no-self-update $TOOLCHAIN
rustup toolchain install stable
rustup component add rustfmt --toolchain stable
displayName: Configure rust
- bash: |
set -x
rustc -Vv
cargo -Vv
cargo +stable fmt --version
displayName: Query rustc, cargo, and rustfmt versions