Skip to content

Commit

Permalink
Restore wasm-bindgen-futures.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Sep 28, 2022
1 parent e6c7e1e commit 7c91aff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yew-platform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ repository = "https://github.com/yewstack/yew"
rust-version = "1.60.0"

[dependencies]
gloo = "0.8"
futures = { version = "0.3", default-features = false, features = ["std", "async-await"] }
pin-project = "1.0.11"
pinned = "0.1.0"
Expand All @@ -21,6 +20,7 @@ pinned = "0.1.0"
# we move wasm-bindgen here so no promise-based spawn_local can present for
# non-wasm32 targets.
wasm-bindgen-futures = "0.4"
gloo = "0.8"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
num_cpus = { version = "1.13", optional = true }
Expand Down
3 changes: 3 additions & 0 deletions packages/yew/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ serde = { version = "1", features = ["derive"] }
tracing = "0.1.36"
yew-platform = { version = "0.1.0", path = "../yew-platform" }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# We still need tokio as we have docs linked to it.
tokio = { version = "1.19", features = ["rt"] }
Expand Down

0 comments on commit 7c91aff

Please sign in to comment.