tokio-rustls 0.1.4

An implementation of TLS/SSL streams for Tokio giving an implementation of TLS for nonblocking I/O streams.

tokio-rustls

crates license docs.rs

tokio-tls fork, use rustls.

exmaple

// ...

use rustls::ClientConfig;
use tokio_rustls::ClientConfigExt;

let mut config = ClientConfig::new();
config.root_store.add_trust_anchors(&webpki_roots::ROOTS);
let config = Arc::new(config);

TcpStream::connect(&addr, &handle)
	.and_then(|socket| config.connect_async("www.rust-lang.org", socket))

// ...