Make appveyor script more robust
@@ -11,7 +11,8 @@ branches:
- master
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- - rustup-init -yv --default-toolchain %channel% --default-host %target% --profile minimal
+ - cmd: set latest=curl -s https://rust-lang.github.io/rustup-components-history/x86_64-pc-windows-msvc/rustc
+ - rustup-init -yv --default-toolchain %channel%-%latest% --default-host %target% --profile minimal
- cmd: set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
cache:
- '%USERPROFILE%\.cargo'
