mirror of https://github.com/yewstack/yew
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:
parent
528ec66fbc
commit
6bf58ab7db
|
@ -15,7 +15,7 @@ all = ["stable", "experimental"]
|
||||||
# Broad features
|
# Broad features
|
||||||
## All features MUST be stable or experimental
|
## All features MUST be stable or experimental
|
||||||
stable = ["neq", "pure", "history", "mrc_irc", "effect", "future"]
|
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.
|
# Some pointers are stable, some experimental.
|
||||||
# This makes sure you get all the pointers
|
# This makes sure you get all the pointers
|
||||||
|
@ -28,8 +28,8 @@ with_callback = []
|
||||||
history = []
|
history = []
|
||||||
dsl = []
|
dsl = []
|
||||||
effect = []
|
effect = []
|
||||||
fetch = ["serde", "serde_json", "neq", "future"]
|
fetch = ["serde", "serde_json", "neq", "future", "web-sys"]
|
||||||
future = ["wasm-bindgen-futures", "wasm-bindgen", "stdweb", "futures", "web-sys"]
|
future = ["wasm-bindgen-futures", "wasm-bindgen", "futures"]
|
||||||
|
|
||||||
# Ptr features
|
# Ptr features
|
||||||
lrc = []
|
lrc = []
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use std::future::Future;
|
use std::future::Future;
|
||||||
use stdweb::spawn_local;
|
use wasm_bindgen_futures::spawn_local;
|
||||||
use yew::{
|
use yew::{
|
||||||
agent::{Agent, AgentLink},
|
agent::{Agent, AgentLink},
|
||||||
Component, ComponentLink,
|
Component, ComponentLink,
|
||||||
|
|
Loading…
Reference in New Issue