From 8f52604987038225ce90261f17fd8408f1a7ebe3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 5 Feb 2020 01:40:27 +0100 Subject: Use `reqwest` and `tokio` in `pokedex` example --- examples/pokedex/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/pokedex/Cargo.toml') diff --git a/examples/pokedex/Cargo.toml b/examples/pokedex/Cargo.toml index 76a3a82f..b96eda91 100644 --- a/examples/pokedex/Cargo.toml +++ b/examples/pokedex/Cargo.toml @@ -6,9 +6,9 @@ edition = "2018" publish = false [dependencies] -iced = { path = "../..", features = ["image"] } -iced_futures = { path = "../../futures", features = ["async-std"] } -surf = "1.0" +iced = { path = "../..", features = ["image", "debug"] } +iced_futures = { path = "../../futures", features = ["tokio"] } +reqwest = { version = "0.10", features = ["json"] } rand = "0.7" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -- cgit From 9df3fb13c7b0372f64ff7bd9073769833689de5b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 5 Feb 2020 04:15:45 +0100 Subject: Make `pokedex` example work on Wasm --- examples/pokedex/Cargo.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'examples/pokedex/Cargo.toml') diff --git a/examples/pokedex/Cargo.toml b/examples/pokedex/Cargo.toml index b96eda91..f8668be0 100644 --- a/examples/pokedex/Cargo.toml +++ b/examples/pokedex/Cargo.toml @@ -8,7 +8,12 @@ publish = false [dependencies] iced = { path = "../..", features = ["image", "debug"] } iced_futures = { path = "../../futures", features = ["tokio"] } -reqwest = { version = "0.10", features = ["json"] } -rand = "0.7" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" +rand = { version = "0.7", features = ["wasm-bindgen"] } + +[dependencies.reqwest] +version = "0.10" +git = "https://github.com/hecrj/reqwest.git" +branch = "feature/wasm-deserialize-json" +features = ["json"] -- cgit From ad500441afc355f0b8ca2a463248d350d74f0f20 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 6 Feb 2020 03:56:21 +0100 Subject: Allow switching `executor::Default` with features --- examples/pokedex/Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/pokedex/Cargo.toml') diff --git a/examples/pokedex/Cargo.toml b/examples/pokedex/Cargo.toml index f8668be0..c1e3edb5 100644 --- a/examples/pokedex/Cargo.toml +++ b/examples/pokedex/Cargo.toml @@ -6,8 +6,7 @@ edition = "2018" publish = false [dependencies] -iced = { path = "../..", features = ["image", "debug"] } -iced_futures = { path = "../../futures", features = ["tokio"] } +iced = { path = "../..", features = ["image", "debug", "tokio"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" rand = { version = "0.7", features = ["wasm-bindgen"] } -- cgit