Registry / networking / tokio-tls

tokio-tls

JSON →
library0.3.1rscratesunverified

Deprecated implementation of TLS/SSL streams for Tokio; use tokio-native-tls instead.

# Cargo.toml [dependencies] tokio-tls = "0.3.1"
INSTALL
IMPORT
SIG · TOKIO-TLS
T
tokio-tls
networkingrustv0.3.1
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.

TlsConnector
✓ use tokio_tls::TlsConnector;

Connect to a TLS server using the deprecated tokio-tls crate.

use tokio_tls::TlsConnector; use tokio::net::TcpStream; #[tokio::main] async fn main() { let stream = TcpStream::connect("example.com:443").await.unwrap(); let connector = TlsConnector::new(); let _tls_stream = connector.connect("example.com", stream).await.unwrap(); }
Debug
Known issues
breakingThis crate is deprecated; use `tokio-native-tls` or `tokio-rustls` instead.
fix
Replace `tokio-tls` with `tokio-native-tls` and update imports accordingly.
affects: >=0.3.0
Upgrade
Version history
0.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
Resources
tokio-tls — cargo add tokio-tls · libregistry