Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit 52b6839

Browse files
committed
Obliterate openssl
1 parent 6795e5b commit 52b6839

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

Cargo.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ libc = "0.2.42"
2424
curl-sys = { path = "curl-sys", version = "0.4.59", default-features = false }
2525
socket2 = "0.5.0"
2626

27-
# Unix platforms use OpenSSL for now to provide SSL functionality
28-
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
29-
openssl-sys = { version = "0.9.64", optional = true }
30-
openssl-probe = { version = "0.1.2", optional = true }
31-
3227
[target.'cfg(target_env = "msvc")'.dependencies]
3328
schannel = "0.1.13"
3429
windows-sys = { version = "0.48", features = ["Win32_System_LibraryLoader", "Win32_Security_Cryptography"] }
@@ -39,8 +34,8 @@ mio-extras = "2.0.3"
3934
anyhow = "1.0.31"
4035

4136
[features]
42-
default = ["ssl"]
43-
ssl = ["openssl-sys", "openssl-probe", "curl-sys/ssl"] # OpenSSL/system TLS backend
37+
default = []
38+
ssl = []
4439
mesalink = ["curl-sys/mesalink"] # MesaLink TLS backend
4540
http2 = ["curl-sys/http2"]
4641
spnego = ["curl-sys/spnego"]

curl-sys/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ version = "0.8"
3232
optional = true
3333
features = ["no_log_capture"]
3434

35-
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
36-
openssl-sys = { version = "0.9.64", optional = true }
37-
3835
[target.'cfg(windows)'.dependencies]
3936
windows-sys = { version = "0.48", features = ["Win32_Networking_WinSock"] }
4037

@@ -47,13 +44,13 @@ cc = "1.0"
4744

4845
[features]
4946
default = ["ssl"]
50-
ssl = ["openssl-sys"]
47+
ssl = []
5148
http2 = ["libnghttp2-sys"]
5249
mesalink = []
5350
rustls = ["rustls-ffi"]
5451
static-curl = []
5552
windows-static-ssl = []
56-
static-ssl = ["openssl-sys/vendored"]
53+
static-ssl = []
5754
spnego = []
5855
force-system-lib-on-osx = []
5956
protocol-ftp = []

0 commit comments

Comments
 (0)