Skip to content

Commit

Permalink
Use wasm-bindgen-futures' spawn_local (#1167)
Browse files Browse the repository at this point in the history
* Use wasm-bindgen-futures' spawn_local

* the fetch feature still needs web-sys

Not implicit via future anymore
  • Loading branch information
Stigjb authored Apr 29, 2020
1 parent 528ec66 commit 6bf58ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions yewtil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ all = ["stable", "experimental"]
# Broad features
## All features MUST be stable or experimental
stable = ["neq", "pure", "history", "mrc_irc", "effect", "future"]
experimental = ["dsl", "lrc", "with_callback", "fetch" ]
experimental = ["dsl", "lrc", "with_callback", "fetch"]

# Some pointers are stable, some experimental.
# This makes sure you get all the pointers
Expand All @@ -28,8 +28,8 @@ with_callback = []
history = []
dsl = []
effect = []
fetch = ["serde", "serde_json", "neq", "future"]
future = ["wasm-bindgen-futures", "wasm-bindgen", "stdweb", "futures", "web-sys"]
fetch = ["serde", "serde_json", "neq", "future", "web-sys"]
future = ["wasm-bindgen-futures", "wasm-bindgen", "futures"]

# Ptr features
lrc = []
Expand Down
2 changes: 1 addition & 1 deletion yewtil/src/future.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::future::Future;
use stdweb::spawn_local;
use wasm_bindgen_futures::spawn_local;
use yew::{
agent::{Agent, AgentLink},
Component, ComponentLink,
Expand Down

0 comments on commit 6bf58ab

Please sign in to comment.