From 29efae385e9f42c9ba9fdb1b3f22da2298fbd1a2 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sat, 18 Nov 2023 19:18:55 +0100 Subject: [PATCH] Apparently, the conditional dependency now works again. lol --- Cargo.toml | 2 +- src/gateway/wasm/gateway.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b09926d..433ca85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,6 @@ sqlx = { version = "0.7.1", features = [ ], optional = true } safina-timer = "0.1.11" rand = "0.8.5" -ws_stream_wasm = "0.7.4" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] rustls = "0.21.8" @@ -69,6 +68,7 @@ hostname = "0.3.1" [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2.11", features = ["js"] } tokio-tungstenite = { version = "0.20.1", default-features = false } +ws_stream_wasm = "0.7.4" [dev-dependencies] lazy_static = "1.4.0" diff --git a/src/gateway/wasm/gateway.rs b/src/gateway/wasm/gateway.rs index 5a54efb..560d58f 100644 --- a/src/gateway/wasm/gateway.rs +++ b/src/gateway/wasm/gateway.rs @@ -1 +1,6 @@ +pub use super::*; use ws_stream_wasm::*; +#[derive(Debug)] +pub struct WasmGateway { + events: Arc>, +}