Registry / networking / tls-api-native-tls

tls-api-native-tls

JSON →
library0.12.1rscratesunverified

TLS API implementation over native-tls crate.

# Cargo.toml [dependencies] tls-api-native-tls = "0.12.1"
INSTALL
IMPORT
SIG · TLS-API-NATIVE-TLS
T
tls-api-native-tls
networkingrustv0.12.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 tls_api_native_tls::TlsConnector;

Create a TLS connector using native-tls.

use tls_api_native_tls::TlsConnector; use tls_api::TlsConnector as _; fn main() -> Result<(), Box<dyn std::error::Error>> { let connector = TlsConnector::new()?; println!("TLS connector created"); Ok(()) }
Debug
Known issues
gotchaRequires the `tls-api` trait to be in scope for method calls.
fix
Add `use tls_api::TlsConnector as _;` to bring the trait into scope.
affects: >=0.1.0
Upgrade
Version history
0.12.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
tls-api-native-tls — cargo add tls-api-native-tls · libregistry