Registry / networking / rustls

rustls

JSON →
library0.23.40rscratesunverified

Rustls is a modern TLS library written in Rust.

# Cargo.toml [dependencies] rustls = "0.23.40"
INSTALL
IMPORT
SIG · RUSTLS
R
rustls
networkingrustv0.23.40
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.

ClientConfig
use rustls::ClientConfig;

Create a TLS client configuration with native root certificates.

use rustls::ClientConfig; use std::sync::Arc; fn main() { let config = ClientConfig::builder() .with_native_roots() .with_no_client_auth(); println!("Client config created"); }
Debug
Known issues
gotchaRustls does not support all cipher suites; some servers may fail to connect.
fix
Enable additional cipher suites via the 'dangerous_configuration' feature if needed.
affects: >=0.23.0
Upgrade
Version history
0.23.40latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
rustls — cargo add rustls · libregistry