mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Make windows arm-specific dependency more specific
This commit is contained in:
parent
6f1081fe4f
commit
2d3389dd32
2 changed files with 7 additions and 8 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue