Skip to content

Commit

Permalink
Use rustls on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
encounter committed Jan 21, 2023
1 parent bea0a00 commit cd01b62
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 17 deletions.
140 changes: 126 additions & 14 deletions Cargo.lock

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

15 changes: 12 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,24 @@ object = { version = "0.30.0", features = ["read_core", "std", "elf"], default-f
png = "0.17.7"
ppc750cl = { git = "https://github.com/encounter/ppc750cl", rev = "aa631a33de7882c679afca89350898b87cb3ba3f" }
rabbitizer = { git = "https://github.com/encounter/rabbitizer-rs", rev = "10c279b2ef251c62885b1dcdcfe740b0db8e9956" }
reqwest = "0.11.13"
rfd = { version = "0.10.0" } # , default-features = false, features = ['xdg-portal']
self_update = "0.32.0"
rfd = { version = "0.10.0" } #, default-features = false, features = ['xdg-portal']
serde = { version = "1", features = ["derive"] }
tempfile = "3.3.0"
thiserror = "1.0.37"
time = { version = "0.3.17", features = ["formatting", "local-offset"] }
toml = "0.5.9"
twox-hash = "1.6.3"
byteorder = "1.4.3"

# For Linux static binaries, use rustls
[target.'cfg(target_os = "linux")'.dependencies]
reqwest = { version = "0.11.13", default-features = false, features = ["blocking", "json", "rustls"] }
self_update = { version = "0.34.0", default-features = false, features = ["rustls"] }

# For all other platforms, use native TLS
[target.'cfg(not(target_os = "linux"))'.dependencies]
reqwest = "0.11.13"
self_update = "0.34.0"

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

0 comments on commit cd01b62

Please # to comment.