From f6ff913ff9fb9d5a179011e8b53ab1fdb704e273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8A=E6=AC=A7?= Date: Sun, 10 Dec 2023 14:59:57 +0800 Subject: [PATCH] Use same original `tokio`. --- Cargo.toml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c942cc9..c3917d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,14 +24,12 @@ once_cell = "1" wasm-bindgen-futures = { version = "0.4" } gloo = { version = "0.11" } -[target.'cfg(target_os = "wasi")'.dependencies] -tokio_wasi = { version = "1", features = ["rt", "time"] } -tokio-stream_wasi = { version = "0.1", features = ["time"] } +[target.'cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))'.dependencies] +tokio = { version = "1", features = ["rt", "time"] } +tokio-stream = { version = "0.1", features = ["time"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] num_cpus = "1.13" -tokio = { version = "1", features = ["rt", "time"] } -tokio-stream = { version = "0.1", features = ["time"] } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] tokio = { version = "1", features = ["full"] }