Skip to content

Commit

Permalink
make wasm deps part of std
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed May 2, 2020
1 parent e092846 commit 26f62aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ std = [
"pin-utils",
"slab",
"smol",
"wasm-timer",
"wasm-bindgen-futures",
"futures-channel",
]
alloc = [
"futures-core/alloc",
Expand All @@ -69,9 +72,9 @@ slab = { version = "0.4.2", optional = true }
smol = { version = "0.1.1", optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-timer = "0.2.4"
wasm-bindgen-futures = "0.4.10"
futures-channel = "0.3.4"
wasm-timer = { version = "0.2.4", optional = true }
wasm-bindgen-futures = { version = "0.4.10", optional = true }
futures-channel = { version = "0.3.4", optional = true }

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

0 comments on commit 26f62aa

Please sign in to comment.