aboutsummaryrefslogtreecommitdiff
path: root/net/async_rustls/src/lib.rs
blob: 4365552341c306f5a5ec0a1a0a2d264eeb2209b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(all(feature = "smol", feature = "tokio"))]
compile_error!("Only one async runtime feature should be enabled");

#[cfg(not(any(feature = "smol", feature = "tokio")))]
compile_error!("At least one async runtime feature must be enabled for this crate.");

#[cfg(feature = "smol")]
pub use futures_rustls::{rustls, TlsAcceptor, TlsConnector, TlsStream};

#[cfg(feature = "tokio")]
pub use tokio_rustls::{rustls, TlsAcceptor, TlsConnector, TlsStream};