Skip to content

Commit

Permalink
examples: use pki_types (#34)
Browse files Browse the repository at this point in the history
Avoids taking a dev-dependency on webpki.
  • Loading branch information
getong authored Dec 5, 2023
1 parent 0184703 commit ff32e1e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
2 changes: 1 addition & 1 deletion examples/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use std::path::{Path, PathBuf};
use std::sync::Arc;

use argh::FromArgs;
use pki_types::{CertificateDer, PrivateKeyDer};
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};

/// Tokio Rustls server example
#[derive(FromArgs)]
Expand Down

0 comments on commit ff32e1e

Please sign in to comment.