aboutsummaryrefslogtreecommitdiff
path: root/net/src/error.rs
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-06-22 05:21:42 +0200
committerhozan23 <hozan23@karyontech.net>2024-06-22 05:21:42 +0200
commit741a83e1a59a9ed822ce6d1ab1a82d31a1cc854a (patch)
tree4fd02b04967aceed1a59b573f8e0b4677e7a9063 /net/src/error.rs
parent9aa972dd83a85cec5da71e8e893eb6e07d5db8ca (diff)
net: compile rustls only if tls feature is enabled
Diffstat (limited to 'net/src/error.rs')
-rw-r--r--net/src/error.rs8
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}")]