diff --git a/Cargo.toml b/Cargo.toml index 8a27957..6f83fa7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ unicase = "^2.8" base64 = { version = "^0.22", optional = true } zeroize = { version = "^1.8", features = ["zeroize_derive"], optional = true } native-tls = { version = "^0.2", optional = true } -rustls = { version = "^0.23", optional = true } +rustls = { version = "^0.23", optional = true, default-features = false, features = ["logging", "std"] } rustls-pemfile = { version = "^2.2", optional = true } rustls-pki-types = { version = "^1.12", features = ["alloc"], optional = true } webpki = { version = "^0.22", optional = true } diff --git a/src/tls.rs b/src/tls.rs index bad4267..c0ea134 100644 --- a/src/tls.rs +++ b/src/tls.rs @@ -27,7 +27,7 @@ pub struct Conn { stream: native_tls::TlsStream, #[cfg(feature = "rust-tls")] - stream: rustls::StreamOwned, + pub stream: rustls::StreamOwned, } impl Conn