async-tls-lite

Crates.ioasync-tls-lite
lib.rsasync-tls-lite
version0.1.1
sourcesrc
created_at2020-07-11 09:16:59.826421
updated_at2020-07-14 06:39:19.304767
descriptionAsynchronous TLS/SSL streams using Rustls.
homepagehttps://github.com/vkill/async-tls-lite
repositoryhttps://github.com/vkill/async-tls-lite
max_upload_size
id263971
size45,140
vkill (vkill)

documentation

https://docs.rs/async-tls-lite

README

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
Commit count: 5

cargo fmt