Skip to content

Commit

Permalink
Support using native-tls instead of rustls
Browse files Browse the repository at this point in the history
rustls depends on ring, which requires clang to build on Windows arm64.
native-tls builds without the need for clang so is generally easier to
deal with

https://github.com/briansmith/ring/blob/7c0024abaf4fd59250c9b79cc41a029aa0ef3497/BUILDING.md#windows-arm64
  • Loading branch information
wezm committed Jul 4, 2024
1 parent 3534320 commit 11f0088
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 1 deletion.
146 changes: 146 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ log = "0.4.21"
mime_guess = { version = "2.0.4", default-features = false }
pico-args = "0.5.0"
pretty_env_logger = "0.5.0"
reqwest = { version = "0.11.24", default-features = false, features = ["rustls-tls", "gzip", "socks"] }
reqwest = { version = "0.11.24", default-features = false, features = ["gzip", "socks"] }
rss = "2.0.7"
serde = { version = "1.0.197", features = ["derive"] }
simple-eyre = "0.3.1"
Expand All @@ -46,3 +46,11 @@ dirs = "5.0.1"

[target.'cfg(not(windows))'.dependencies]
xdg = "2.5.2"

[profile.release]
strip = "debuginfo"

[features]
default = ["rust-tls"]
native-tls = ["reqwest/native-tls"]
rust-tls = ["reqwest/rustls-tls"]

0 comments on commit 11f0088

Please sign in to comment.