Make windows arm-specific dependency more specific

This commit is contained in:
Filip Tibell 2023-05-06 09:53:42 +02:00
parent 6f1081fe4f
commit 2d3389dd32
No known key found for this signature in database
2 changed files with 7 additions and 8 deletions

View file

@ -123,7 +123,7 @@ jobs:
targets: ${{ matrix.cargo-target }} targets: ${{ matrix.cargo-target }}
- name: Install tooling - name: Install tooling
if: matrix.runner-os == 'ubuntu-latest' if: matrix.cargo-target == 'aarch64-unknown-linux-gnu'
run: | run: |
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y musl-tools clang llvm sudo apt-get install -y musl-tools clang llvm

View file

@ -45,16 +45,15 @@ hyper = { version = "0.14", features = ["full"] }
hyper-tungstenite = { version = "0.9" } hyper-tungstenite = { version = "0.9" }
tokio-tungstenite = { version = "0.18" } tokio-tungstenite = { version = "0.18" }
# Rustls does not yet compile on windows aarch64, so we use default tls there # Using rustls instead of the default OpenSSL allows us to have much more portable binaries
[target.'cfg(all(target_os = "windows", target_arch = "aarch64"))'.dependencies]
reqwest = { version = "0.11", default-features = false, features = [
"default-tls",
] }
[target.'cfg(not(all(target_os = "windows", target_arch = "aarch64")))'.dependencies]
reqwest = { version = "0.11", default-features = false, features = [ reqwest = { version = "0.11", default-features = false, features = [
"rustls-tls", "rustls-tls",
] } ] }
# Rustls does not yet compile on windows aarch64, so we use default tls there
# https://github.com/briansmith/ring/issues/1167
[target.aarch64-pc-windows-msvc.dependencies]
reqwest = "0.11"
[dev-dependencies] [dev-dependencies]
anyhow = "1.0" anyhow = "1.0"