Crates.io | async-tls-lite |
lib.rs | async-tls-lite |
version | 0.1.1 |
source | src |
created_at | 2020-07-11 09:16:59.826421 |
updated_at | 2020-07-14 06:39:19.304767 |
description | Asynchronous TLS/SSL streams using Rustls. |
homepage | https://github.com/vkill/async-tls-lite |
repository | https://github.com/vkill/async-tls-lite |
max_upload_size | |
id | 263971 |
size | 45,140 |
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?;
// ...
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