From 527f8240b8624878ed55ae83569e67fcff2fe61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?19=E5=B9=B4=E6=A2=A6=E9=86=92?= <3949379+getong@users.noreply.github.com> Date: Tue, 5 Dec 2023 22:50:04 +0800 Subject: [PATCH] use rustls-pki-types --- Cargo.toml | 1 - examples/server.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d9093676..c53f6538 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,4 +31,3 @@ 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"] } 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)]