Registry / networking / async-tls

async-tls

JSON →
library0.13.0rscratesunverified

Asynchronous TLS/SSL streams using Rustls.

# Cargo.toml [dependencies] async-tls = "0.13.0"
INSTALL
IMPORT
SIG · ASYNC-TLS
A
async-tls
networkingrustv0.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TlsAcceptor
use async_tls::TlsAcceptor;

Create a TLS acceptor for async TCP connections.

use async_tls::TlsAcceptor; use async_std::net::TcpListener; #[async_std::main] async fn main() { let listener = TcpListener::bind("0.0.0.0:443").await.unwrap(); let acceptor = TlsAcceptor::default(); // Accept connections }
Debug
Known issues
gotchaRequires an async runtime like async-std or smol.
fix
Use #[async_std::main] or similar executor attribute.
affects: >=0.13.0
Upgrade
Version history
0.13.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
38
Resources
async-tls — cargo add async-tls · libregistry