diff --git a/Cargo.toml b/Cargo.toml index c4081fc..26eb9da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,8 +16,8 @@ pki-types = { package = "rustls-pki-types", version = "0.2" } [dev-dependencies] ring = "0.16.5" -rustls = "=0.22.0-alpha.2" -rustls-webpki = "=0.102.0-alpha.2" +rustls = "=0.22.0-alpha.3" +rustls-webpki = "=0.102.0-alpha.3" serial_test = "2" untrusted = "0.7.0" # stick to the version ring depends on for now webpki-roots = "=0.26.0-alpha.1" diff --git a/examples/google.rs b/examples/google.rs index 89ee2c3..5387e6f 100644 --- a/examples/google.rs +++ b/examples/google.rs @@ -2,15 +2,13 @@ use std::io::{stdout, Read, Write}; use std::net::TcpStream; use std::sync::Arc; -use rustls::crypto::ring::Ring; - fn main() { let mut roots = rustls::RootCertStore::empty(); for cert in rustls_native_certs::load_native_certs().expect("could not load platform certs") { roots.add(cert).unwrap(); } - let config = rustls::ClientConfig::::builder() + let config = rustls::ClientConfig::builder() .with_safe_defaults() .with_root_certificates(roots) .with_no_client_auth(); diff --git a/tests/smoketests.rs b/tests/smoketests.rs index c160402..f32f5fa 100644 --- a/tests/smoketests.rs +++ b/tests/smoketests.rs @@ -4,7 +4,6 @@ use std::path::PathBuf; use std::sync::Arc; use std::{env, panic}; -use rustls::crypto::ring::Ring; // #[serial] is used on all these tests to run them sequentially. If they're run in parallel, // the global env var configuration in the env var test interferes with the others. use serial_test::serial; @@ -15,7 +14,7 @@ fn check_site(domain: &str) { roots.add(cert).unwrap(); } - let config = rustls::ClientConfig::::builder() + let config = rustls::ClientConfig::builder() .with_safe_defaults() .with_root_certificates(roots) .with_no_client_auth();