Use wasm-bindgen-futures' spawn_local (#1167)

* Use wasm-bindgen-futures' spawn_local

* the fetch feature still needs web-sys

Not implicit via future anymore
This commit is contained in:
Stig Johan Berggren 2020-04-29 17:26:27 +02:00 committed by GitHub
parent 528ec66fbc
commit 6bf58ab7db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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
@ -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 = []

View File

@ -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,