From 8c385ee39ee07e6a133022f094254b73d1e4670d Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 20 Nov 2023 11:41:32 +0100 Subject: [PATCH] Add wasm-bindgen to Cargo.toml --- Cargo.lock | 2 +- Cargo.toml | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ad4ce35..7c74e2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -205,7 +205,6 @@ dependencies = [ "lazy_static", "log", "native-tls", - "pharos", "poem", "rand", "regex", @@ -223,6 +222,7 @@ dependencies = [ "tokio", "tokio-tungstenite", "url", + "wasm-bindgen", "wasm-bindgen-test", "ws_stream_wasm", ] diff --git a/Cargo.toml b/Cargo.toml index 31de1b1..24a7114 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,10 +54,6 @@ sqlx = { version = "0.7.1", features = [ ], optional = true } safina-timer = "0.1.11" rand = "0.8.5" -# TODO: Remove the below 3 imports for production! -ws_stream_wasm = "0.7.4" -pharos = "0.5.3" -wasm-bindgen-test = "0.3.38" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] rustls = "0.21.8" @@ -72,8 +68,9 @@ hostname = "0.3.1" [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2.11", features = ["js"] } ws_stream_wasm = "0.7.4" -wasm-bindgen-test = "0.3.38" [dev-dependencies] lazy_static = "1.4.0" +wasm-bindgen-test = "0.3.38" +wasm-bindgen = "0.2.88"