Skip to content

Commit cd01b62

Browse files
committed
Use rustls on Linux
1 parent bea0a00 commit cd01b62

File tree

2 files changed

+138
-17
lines changed

2 files changed

+138
-17
lines changed

Cargo.lock

Lines changed: 126 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,24 @@ object = { version = "0.30.0", features = ["read_core", "std", "elf"], default-f
3333
png = "0.17.7"
3434
ppc750cl = { git = "https://github.com/encounter/ppc750cl", rev = "aa631a33de7882c679afca89350898b87cb3ba3f" }
3535
rabbitizer = { git = "https://github.com/encounter/rabbitizer-rs", rev = "10c279b2ef251c62885b1dcdcfe740b0db8e9956" }
36-
reqwest = "0.11.13"
37-
rfd = { version = "0.10.0" } # , default-features = false, features = ['xdg-portal']
38-
self_update = "0.32.0"
36+
rfd = { version = "0.10.0" } #, default-features = false, features = ['xdg-portal']
3937
serde = { version = "1", features = ["derive"] }
4038
tempfile = "3.3.0"
4139
thiserror = "1.0.37"
4240
time = { version = "0.3.17", features = ["formatting", "local-offset"] }
4341
toml = "0.5.9"
4442
twox-hash = "1.6.3"
43+
byteorder = "1.4.3"
44+
45+
# For Linux static binaries, use rustls
46+
[target.'cfg(target_os = "linux")'.dependencies]
47+
reqwest = { version = "0.11.13", default-features = false, features = ["blocking", "json", "rustls"] }
48+
self_update = { version = "0.34.0", default-features = false, features = ["rustls"] }
49+
50+
# For all other platforms, use native TLS
51+
[target.'cfg(not(target_os = "linux"))'.dependencies]
52+
reqwest = "0.11.13"
53+
self_update = "0.34.0"
4554

4655
[target.'cfg(windows)'.dependencies]
4756
path-slash = "0.2.1"

0 commit comments

Comments
 (0)