Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit e5c2f4e

Browse files
futurepaulbenthecarman
authored andcommitted
web-sys is just for dev now
1 parent 1f60f70 commit e5c2f4e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mutiny-core/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ test-utils = []
6969
[target.'cfg(target_arch = "wasm32")'.dependencies]
7070
wasm-bindgen = "0.2.84"
7171
wasm-bindgen-futures = { version = "0.4.33" }
72-
web-sys = { version = "0.3.60", features = ["console"] }
7372
js-sys = { version = "0.3.60" }
7473
gloo-net = { version = "0.2.4" }
7574
instant = { version = "0.1", features = ["wasm-bindgen"] }
7675
getrandom = { version = "0.2", features = ["js"] }
7776
windowless_sleep = { git = "https://github.com/futurepaul/windowless_sleep", commit = "e924649" }
7877

78+
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
79+
web-sys = { version = "0.3.60", features = ["console"] }
80+
7981
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
8082
tokio = { version = "1", features = ["rt"] }
8183
tokio-tungstenite = { version = "0.19.0", features = ["native-tls"] }

mutiny-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ rexie = "0.4"
3636
js-sys = "0.3.60"
3737
gloo-storage = "0.2.2"
3838
gloo-utils = { version = "0.1.6", features = ["serde"] }
39-
web-sys = { version = "0.3.60", features = ["console"] }
4039
bip39 = { version = "2.0.0" }
4140
getrandom = { version = "0.2", features = ["js"] }
4241
futures = "0.3.25"
@@ -52,6 +51,7 @@ console_error_panic_hook = { version = "0.1.6", optional = true }
5251
[dev-dependencies]
5352
mutiny-core = { path = "../mutiny-core", features = ["test-utils"] }
5453
wasm-bindgen-test = "0.3.33"
54+
web-sys = { version = "0.3.60", features = ["console"] }
5555

5656
[features]
5757
default = [ ]

0 commit comments

Comments
 (0)