Skip to content

Commit ff32e1e

Browse files
authored
examples: use pki_types (#34)
Avoids taking a dev-dependency on webpki.
1 parent 0184703 commit ff32e1e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ futures-util = "0.3.1"
3131
lazy_static = "1.1"
3232
webpki-roots = "0.26"
3333
rustls-pemfile = "2"
34-
webpki = { package = "rustls-webpki", version = "0.102", features = ["alloc", "std"] }

examples/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ use std::path::{Path, PathBuf};
55
use std::sync::Arc;
66

77
use argh::FromArgs;
8+
use pki_types::{CertificateDer, PrivateKeyDer};
89
use rustls_pemfile::{certs, rsa_private_keys};
910
use tokio::io::{copy, sink, split, AsyncWriteExt};
1011
use tokio::net::TcpListener;
1112
use tokio_rustls::TlsAcceptor;
12-
use webpki::types::{CertificateDer, PrivateKeyDer};
1313

1414
/// Tokio Rustls server example
1515
#[derive(FromArgs)]

0 commit comments

Comments
 (0)