From 546753dc6d3215429e6f91c80abaa6599de332e5 Mon Sep 17 00:00:00 2001 From: Andy Caldwell Date: Fri, 6 Dec 2019 04:27:48 +0000 Subject: Don't vendor OpenSSL except on Windows (#197) * Don't vendor OpenSSL except on Windows * Use a feature rather than guessing based on OS --- Cargo.toml | 5 ++--- src/transport.rs | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 84847f9..f763d64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,9 +28,7 @@ http = "0.1" hyper = "0.12" hyper-openssl = { version = "0.7", optional = true } hyperlocal = { version = "0.6", optional = true } -log = "0.4" -mime = "0.3" -openssl = { version = "0.10", optional = true, features = ["vendored"] } +openssl = { version = "0.10", optional = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tar = "0.4" @@ -46,3 +44,4 @@ env_logger = "0.6" default = ["chrono", "unix-socket", "tls"] unix-socket = ["hyperlocal"] tls = ["openssl", "hyper-openssl"] +vendored-ssl = ["tls", "openssl/vendored"] diff --git a/src/transport.rs b/src/transport.rs index ce089fc..2887790 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -221,7 +221,8 @@ impl Transport { Transport::Tcp { .. } => (), #[cfg(feature = "tls")] Transport::EncryptedTcp { .. } => (), - _ => panic!("connection streaming is only supported over TCP"), + #[cfg(feature = "unix-socket")] + Transport::Unix { .. } => panic!("connection streaming is only supported over TCP"), }; let req = self -- cgit v1.2.3