feat: re-export native-tls (#24)

Signed-off-by: Cheng JIANG <jiang.cheng@vip.163.com>
This commit is contained in:
Cheng JIANG 2020-08-31 17:16:29 +02:00 committed by GitHub
parent e8a8a59971
commit c3bf063eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<S: AsyncRead + AsyncWrite + Unpin> Future for MidHandshake<S> {
}
}
}
/// re-export native_tls
pub mod native_tls {
pub use native_tls::*;
}