diff options
author | hozan23 <hozan23@karyontech.net> | 2024-06-22 05:21:42 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-06-22 05:21:42 +0200 |
commit | 741a83e1a59a9ed822ce6d1ab1a82d31a1cc854a (patch) | |
tree | 4fd02b04967aceed1a59b573f8e0b4677e7a9063 /net/src/error.rs | |
parent | 9aa972dd83a85cec5da71e8e893eb6e07d5db8ca (diff) |
net: compile rustls only if tls feature is enabled
Diffstat (limited to 'net/src/error.rs')
-rw-r--r-- | net/src/error.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net/src/error.rs b/net/src/error.rs index 102a343..3656128 100644 --- a/net/src/error.rs +++ b/net/src/error.rs @@ -41,13 +41,9 @@ pub enum Error { #[error("Ws Error: {0}")] WsError(#[from] async_tungstenite::tungstenite::Error), - #[cfg(feature = "smol")] - #[error("Tls Error: {0}")] - Rustls(#[from] futures_rustls::rustls::Error), - - #[cfg(feature = "tokio")] + #[cfg(feature = "tls")] #[error("Tls Error: {0}")] - Rustls(#[from] tokio_rustls::rustls::Error), + Rustls(#[from] karyon_async_rustls::rustls::Error), #[cfg(feature = "tls")] #[error("Invalid DNS Name: {0}")] |