From b84d4519b79b364d27da7aa648af94cfcdb40c14 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Wed, 15 Nov 2023 22:31:44 +0100 Subject: [PATCH] Change typedef to only compile with feature client --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7c1927f..5bb866b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,9 +17,9 @@ #[cfg(all(feature = "rt", feature = "rt_multi_thread"))] compile_error!("feature \"rt\" and feature \"rt_multi_thread\" cannot be enabled at the same time"); -#[cfg(not(target_arch = "wasm32"))] +#[cfg(all(not(target_arch = "wasm32"), feature = "client"))] pub type Gateway = DefaultGateway; -#[cfg(not(target_arch = "wasm32"))] +#[cfg(all(not(target_arch = "wasm32"), feature = "client"))] pub type GatewayHandle = DefaultGatewayHandle; use gateway::DefaultGateway;