#tls

async-tls-lite

Asynchronous TLS/SSL streams using Rustls

2 releases

0.1.1 Jul 14, 2020
0.1.0 Jul 11, 2020

#55 in #tls

Apache-2.0 OR MIT

16KB
190 lines

async-tls-lite

Examples

Simple Client

use std::net::TcpStream;

use async_tls_lite::TlsConnector;
use smol::Async;

// ...

let tcp_stream = Async::<TcpStream>::connect("github.com:443").await?;
let connector = TlsConnector::default();
let mut tls_stream = connector.connect("github.com", tcp_stream).await?;

// ...

Dev

cargo test --all-features --all -- --nocapture && \
cargo clippy --all -- -D clippy::all && \
cargo fmt --all -- --check
cargo build-all-features
cargo test-all-features --all

Dependencies

~8.5MB
~217K SLoC