Skip to content

Commit

Permalink
chore(deps): remove explicit rustls dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
omjadas committed Nov 21, 2021
1 parent 6bbcdf9 commit ca7d56c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ log = "0.4"
moka = { version = "0.6", features = ["future"], optional = true }
openssl = { version = "0.10", optional = true }
rcgen = { version = "0.8", features = ["x509-parser"], optional = true }
rustls = "0.20"
thiserror = "1"
tokio = { version = "1", features = ["full"] }
tokio-rustls = "0.23"
Expand Down
2 changes: 1 addition & 1 deletion src/certificate_authority/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mod rcgen_authority;

use async_trait::async_trait;
use http::uri::Authority;
use rustls::ServerConfig;
use std::sync::Arc;
use tokio_rustls::rustls::ServerConfig;

#[cfg(feature = "openssl-certs")]
#[cfg_attr(docsrs, doc(cfg(feature = "openssl-certs")))]
Expand Down
2 changes: 1 addition & 1 deletion src/certificate_authority/openssl_authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use openssl::{
pkey::{PKey, Private},
x509::{extension::SubjectAlternativeName, X509Builder, X509NameBuilder, X509},
};
use rustls::ServerConfig;
use std::sync::Arc;
use tokio_rustls::rustls::{self, ServerConfig};

/// Issues certificates for use when communicating with clients.
///
Expand Down
2 changes: 1 addition & 1 deletion src/certificate_authority/rcgen_authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use chrono::{Duration, Utc};
use http::uri::Authority;
use moka::future::Cache;
use rcgen::{KeyPair, RcgenError, SanType};
use rustls::ServerConfig;
use std::sync::Arc;
use tokio_rustls::rustls::{self, ServerConfig};

/// Issues certificates for use when communicating with clients.
///
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub use hyper_proxy;
pub use noop::*;
#[cfg(feature = "openssl")]
pub use openssl;
pub use rustls;
pub use tokio_rustls::rustls;
pub use tokio_tungstenite::tungstenite;

#[derive(Clone)]
Expand Down

0 comments on commit ca7d56c

Please sign in to comment.