Skip to content

Commit d0a4cbc

Browse files
committed
Auto merge of #11979 - weihanglo:openssl-for-non-windows, r=ehuss
chore: use openssl only on non-Windows platforms On Windows, the system-provided Schannel will be used instead. See - rust-lang/rust#109133 (comment) - https://github.com/rust-lang/cargo/blob/39116ccc9b420a883a98a960f0597f9cf87414b8/README.md?plain=1#L38-L49
2 parents 39116cc + a0bb59c commit d0a4cbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ libgit2-sys = "0.15.0"
7474
log = "0.4.6"
7575
memchr = "2.1.3"
7676
opener = "0.5"
77-
openssl = { version = '0.10.11', optional = true }
7877
os_info = "3.5.0"
7978
pasetors = { version = "0.6.4", features = ["v3", "paserk", "std", "serde"] }
8079
pathdiff = "0.2"
@@ -100,6 +99,9 @@ unicode-xid = "0.2.0"
10099
url = "2.2.2"
101100
walkdir = "2.2"
102101

102+
[target.'cfg(not(windows))'.dependencies]
103+
openssl = { version = "0.10.50", optional = true }
104+
103105
[target.'cfg(windows)'.dependencies]
104106
fwdansi = "1.1.0"
105107

0 commit comments

Comments
 (0)