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"] }