message: Fix Rust install
diff: # Wasm-bindgen template: https://github.com/rustwasm/wasm-bindgen/blob/master/ci/azure-install-rust.yml
  steps:
  + - bash: |
  + set -ex
  + brew install openssl curl
  + brew link openssl --force
  + echo "##vso[task.prependpath]/usr/local/opt/openssl/bin"
  + echo "##vso[task.setvariable variable=LDFLAGS;]-L/usr/local/opt/openssl/lib"
  + echo "##vso[task.setvariable variable=CPPFLAGS;]-I/usr/local/opt/openssl/include"
  + displayName: "Fix Cargo SSL (macOS)"
  + condition: eq(variables['Agent.OS'], 'Darwin')
  - bash: |
  set -ex
  if [ -x "`command -v rustup`" ]; then
  @@ -14,15 +23,8 @@ steps:
  curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_TOOLCHAIN
  echo "##vso[task.prependpath]$HOME/.cargo/bin"
  fi
  - displayName: "Install Rust (Linux)"
  - condition: eq(variables['Agent.OS'], 'Linux')
  - - bash: |
  - set -ex
  - brew install openssl
  - brew link openssl --force
  - brew install rustup
  - displayName: "Install Rust (macOS)"
  - condition: eq(variables['Agent.OS'], 'Darwin')
  + displayName: "Install Rust (Linux, macOS)"
  + condition: ne(variables['Agent.OS'], 'Windows_NT')
  # - bash: |
  # set -ex
  