#tokio #tls #ssl #native #nonblocking


An implementation of TLS/SSL streams for Tokio using native-tls giving an implementation of TLS for nonblocking I/O streams

1 unstable release

✓ Uses Rust 2018 edition

0.1.0 Apr 3, 2020

#178 in Asynchronous

Download history 41/week @ 2020-03-30 323/week @ 2020-04-06 152/week @ 2020-04-13 116/week @ 2020-04-20 232/week @ 2020-04-27 202/week @ 2020-05-04 816/week @ 2020-05-11 440/week @ 2020-05-18 465/week @ 2020-05-25 1381/week @ 2020-06-01 2074/week @ 2020-06-08 1785/week @ 2020-06-15 3704/week @ 2020-06-22 6308/week @ 2020-06-29 10082/week @ 2020-07-06

172 downloads per month
Used in less than 7 crates

MIT license

315 lines


An implementation of TLS/SSL streams for Tokio built on top of the [native-tls crate]


This project is licensed under the MIT license.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.


Async TLS streams

This library is an implementation of TLS streams using the most appropriate system library by default for negotiating the connection. That is, on Windows this library uses SChannel, on OSX it uses SecureTransport, and on other platforms it uses OpenSSL.

Each TLS stream implements the Read and Write traits to interact and interoperate with the rest of the futures I/O ecosystem. Client connections initiated from this crate verify hostnames automatically and by default.

This crate primarily exports this ability through two newtypes, TlsConnector and TlsAcceptor. These newtypes augment the functionality provided by the native-tls crate, on which this crate is built. Configuration of TLS parameters is still primarily done through the native-tls crate.


~41K SLoC