Rustls+hyper integration for pure rust HTTPS.
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.
use hyper_rustls::HttpsConnector;
Make an HTTPS request using hyper with rustls.
use hyper::Client;
use hyper_rustls::HttpsConnector;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let https = HttpsConnector::new();
let client = Client::builder().build(https);
let res = client.get("https://example.com".parse()?).await?;
println!("Status: {}", res.status());
Ok(())
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.