From c3bf063eb6484d141b178fe31a1e35107480cfd5 Mon Sep 17 00:00:00 2001 From: Cheng JIANG Date: Mon, 31 Aug 2020 17:16:29 +0200 Subject: [PATCH] feat: re-export native-tls (#24) Signed-off-by: Cheng JIANG --- tokio-native-tls/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tokio-native-tls/src/lib.rs b/tokio-native-tls/src/lib.rs index 4e83c8e..a81e915 100644 --- a/tokio-native-tls/src/lib.rs +++ b/tokio-native-tls/src/lib.rs @@ -30,7 +30,7 @@ use tokio::io::{AsyncRead, AsyncWrite}; -use native_tls::{Error, HandshakeError, MidHandshakeTlsStream}; +use crate::native_tls::{Error, HandshakeError, MidHandshakeTlsStream}; use std::fmt; use std::future::Future; use std::io::{self, Read, Write}; @@ -361,3 +361,8 @@ impl Future for MidHandshake { } } } + +/// re-export native_tls +pub mod native_tls { + pub use native_tls::*; +}