diff --git a/Cargo.toml b/Cargo.toml index d9093676..c2b06e7b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,4 +31,4 @@ futures-util = "0.3.1" lazy_static = "1.1" webpki-roots = "0.26" rustls-pemfile = "2" -webpki = { package = "rustls-webpki", version = "0.102", features = ["alloc", "std"] } +rustls-pki-types = "1.0.0" diff --git a/examples/server.rs b/examples/server.rs index 3c2b6e8d..34d1b160 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -9,7 +9,7 @@ use rustls_pemfile::{certs, rsa_private_keys}; use tokio::io::{copy, sink, split, AsyncWriteExt}; use tokio::net::TcpListener; use tokio_rustls::TlsAcceptor; -use webpki::types::{CertificateDer, PrivateKeyDer}; +use rustls_pki_types::{CertificateDer, PrivateKeyDer}; /// Tokio Rustls server example #[derive(FromArgs)]