Use reqwest and tokio in pokedex example

This commit is contained in:
Héctor Ramón Jiménez 2020-02-05 01:40:27 +01:00
parent 28fd9feb40
commit 8f52604987
4 changed files with 17 additions and 17 deletions

View file

@ -19,12 +19,12 @@ log = "0.4"
[dependencies.futures]
version = "0.3"
[dependencies.tokio]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "0.2"
optional = true
features = ["rt-core"]
features = ["rt-core", "rt-threaded"]
[dependencies.async-std]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-std]
version = "1.0"
optional = true