diff --git a/mutiny-core/Cargo.toml b/mutiny-core/Cargo.toml index 6f8e1309b..c60f9ce85 100644 --- a/mutiny-core/Cargo.toml +++ b/mutiny-core/Cargo.toml @@ -69,13 +69,15 @@ test-utils = [] [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = "0.2.84" wasm-bindgen-futures = { version = "0.4.33" } -web-sys = { version = "0.3.60", features = ["console"] } js-sys = { version = "0.3.60" } gloo-net = { version = "0.2.4" } instant = { version = "0.1", features = ["wasm-bindgen"] } getrandom = { version = "0.2", features = ["js"] } windowless_sleep = { git = "https://github.com/futurepaul/windowless_sleep", commit = "e924649" } +[target.'cfg(target_arch = "wasm32")'.dev-dependencies] +web-sys = { version = "0.3.60", features = ["console"] } + [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tokio = { version = "1", features = ["rt"] } tokio-tungstenite = { version = "0.19.0", features = ["native-tls"] } diff --git a/mutiny-wasm/Cargo.toml b/mutiny-wasm/Cargo.toml index 5eb35683a..965dfe9df 100644 --- a/mutiny-wasm/Cargo.toml +++ b/mutiny-wasm/Cargo.toml @@ -36,7 +36,6 @@ rexie = "0.4" js-sys = "0.3.60" gloo-storage = "0.2.2" gloo-utils = { version = "0.1.6", features = ["serde"] } -web-sys = { version = "0.3.60", features = ["console"] } bip39 = { version = "2.0.0" } getrandom = { version = "0.2", features = ["js"] } futures = "0.3.25" @@ -52,6 +51,7 @@ console_error_panic_hook = { version = "0.1.6", optional = true } [dev-dependencies] mutiny-core = { path = "../mutiny-core", features = ["test-utils"] } wasm-bindgen-test = "0.3.33" +web-sys = { version = "0.3.60", features = ["console"] } [features] default = [ ]