From 7f4d2e4849614da593260aa68770cb5a2b690af6 Mon Sep 17 00:00:00 2001 From: hchockarprasad Date: Sat, 15 Jul 2023 21:16:34 +0530 Subject: [PATCH] Update dependency and fix build (#2268) --- lib/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 02f5089c..f3830b5b 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -127,14 +127,14 @@ tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } [target.'cfg(target_arch = "wasm32")'.dependencies] pharos = "0.5.3" -tokio = { version = "1.29.1", default-features = false, features = ["rt"] } +tokio = { version = "1.29.1", default-features = false, features = ["rt", "sync"] } uuid = { version = "1.4.0", features = ["serde", "js", "v4", "v7"] } wasmtimer = { version = "0.2.0", default-features = false, features = ["tokio"] } wasm-bindgen-futures = "0.4.37" ws_stream_wasm = "0.7.4" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -tokio = { version = "1.29.1", default-features = false, features = ["macros", "io-util", "io-std", "fs", "rt-multi-thread", "time"] } +tokio = { version = "1.29.1", default-features = false, features = ["macros", "io-util", "io-std", "fs", "rt-multi-thread", "time", "sync"] } tokio-tungstenite = { version = "0.18.0", optional = true } uuid = { version = "1.4.0", features = ["serde", "v4", "v7"] }