1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-31 15:06:59 +02:00

feat(tls): add crate feature for rustls native root certs (#506)

This commit is contained in:
Rob Ede
2023-12-06 01:39:13 +00:00
committed by GitHub
parent 1945fa0675
commit 9edc0b393a
7 changed files with 88 additions and 27 deletions

View File

@@ -27,14 +27,23 @@ mod uri;
#[cfg(feature = "openssl")]
pub mod openssl;
#[cfg(feature = "rustls-0_20")]
#[cfg(any(
feature = "rustls-0_20-webpki-roots",
feature = "rustls-0_20-native-roots",
))]
pub mod rustls_0_20;
#[doc(hidden)]
#[cfg(feature = "rustls-0_20")]
#[cfg(any(
feature = "rustls-0_20-webpki-roots",
feature = "rustls-0_20-native-roots",
))]
pub use rustls_0_20 as rustls;
#[cfg(feature = "rustls-0_21")]
#[cfg(any(
feature = "rustls-0_21-webpki-roots",
feature = "rustls-0_21-native-roots",
))]
pub mod rustls_0_21;
#[cfg(feature = "native-tls")]