Skip to content

Commit 8f83266

Browse files
make wasm deps part of std
1 parent 2b8753a commit 8f83266

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: Cargo.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ std = [
4343
"pin-utils",
4444
"slab",
4545
"smol",
46+
"wasm-timer",
47+
"wasm-bindgen-futures",
48+
"futures-channel",
4649
]
4750
alloc = [
4851
"futures-core/alloc",
@@ -69,9 +72,9 @@ slab = { version = "0.4.2", optional = true }
6972
smol = { version = "0.1.1", optional = true }
7073

7174
[target.'cfg(target_arch = "wasm32")'.dependencies]
72-
wasm-timer = "0.2.4"
73-
wasm-bindgen-futures = "0.4.10"
74-
futures-channel = "0.3.4"
75+
wasm-timer = { version = "0.2.4", optional = true }
76+
wasm-bindgen-futures = { version = "0.4.10", optional = true }
77+
futures-channel = { version = "0.3.4", optional = true }
7578

7679
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
7780
wasm-bindgen-test = "0.3.10"

0 commit comments

Comments
 (0)