#tokio #tls #ssl #nonblocking #runtime


Deprecated in favor of tokio-naitve-tls. An implementation of TLS/SSL streams for Tokio giving an implementation of TLS for nonblocking I/O streams

14 releases

✓ Uses Rust 2018 edition

0.3.1 May 6, 2020
0.3.0 Nov 26, 2019
0.3.0-alpha.6 Oct 1, 2019
0.2.1 Jan 7, 2019
0.1.0 Dec 21, 2016
Download history 43099/week @ 2020-02-09 41771/week @ 2020-02-16 45258/week @ 2020-02-23 47124/week @ 2020-03-01 44498/week @ 2020-03-08 48923/week @ 2020-03-15 49947/week @ 2020-03-22 52464/week @ 2020-03-29 53255/week @ 2020-04-05 50314/week @ 2020-04-12 54850/week @ 2020-04-19 63168/week @ 2020-04-26 62895/week @ 2020-05-03 69865/week @ 2020-05-10 66616/week @ 2020-05-17 63888/week @ 2020-05-24

212,617 downloads per month
Used in 764 crates (84 directly)

MIT license

25K SLoC

Ruby HTML 25K SLoC // 0.4% comments Ruby 266 SLoC // 0.2% comments


Deprecated in favor of tokio-native-tls.

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

Note: This crate is deprecated and has been moved into the [tokio-native-tls] crate.

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.


~15K SLoC