Registry / networking / tokio-rustls

tokio-rustls

JSON →
library0.26.4rscratesunverified

Asynchronous TLS/SSL streams for Tokio using Rustls.

# Cargo.toml [dependencies] tokio-rustls = "0.26.4"
INSTALL
IMPORT
SIG · TOKIO-RUSTLS
T
tokio-rustls
networkingrustv0.26.4
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_rustls::TlsConnector;

Create a TLS connector for async Tokio streams.

use tokio_rustls::TlsConnector; use rustls::ClientConfig; use std::sync::Arc; let config = Arc::new(ClientConfig::builder().with_safe_defaults().with_no_client_auth()); let connector = TlsConnector::from(config);
Debug
Known issues
gotchaRequires the `rustls` crate and a compatible Tokio runtime.
fix
Add `rustls` as a dependency and ensure Tokio runtime is active.
affects: >=0.20.0
Upgrade
Version history
0.26.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
1
Resources
tokio-rustls — cargo add tokio-rustls · libregistry