From a0bb59c8a8cbde8b68b55f7f270697600ea2ea04 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Sun, 16 Apr 2023 07:56:54 +0100 Subject: [PATCH] chore: use openssl only on non-Windows platforms --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6e1460e8e4f..554c275b4b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,6 @@ libgit2-sys = "0.15.0" log = "0.4.6" memchr = "2.1.3" opener = "0.5" -openssl = { version = '0.10.11', optional = true } os_info = "3.5.0" pasetors = { version = "0.6.4", features = ["v3", "paserk", "std", "serde"] } pathdiff = "0.2" @@ -100,6 +99,9 @@ unicode-xid = "0.2.0" url = "2.2.2" walkdir = "2.2" +[target.'cfg(not(windows))'.dependencies] +openssl = { version = "0.10.50", optional = true } + [target.'cfg(windows)'.dependencies] fwdansi = "1.1.0"