summaryrefslogtreecommitdiffstats
path: root/examples/pokedex
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-06 03:56:21 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-06 03:56:21 +0100
commitad500441afc355f0b8ca2a463248d350d74f0f20 (patch)
tree66d58de7d3ab822db12118e22554ad883da3cc30 /examples/pokedex
parente8316b208705910958152b2ef6c4c5d7110b4e6c (diff)
downloadiced-ad500441afc355f0b8ca2a463248d350d74f0f20.tar.gz
iced-ad500441afc355f0b8ca2a463248d350d74f0f20.tar.bz2
iced-ad500441afc355f0b8ca2a463248d350d74f0f20.zip
Allow switching `executor::Default` with features
Diffstat (limited to 'examples/pokedex')
-rw-r--r--examples/pokedex/Cargo.toml3
-rw-r--r--examples/pokedex/src/main.rs7
2 files changed, 2 insertions, 8 deletions
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"] }
diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs
index 13e420a9..b0cb3c55 100644
--- a/examples/pokedex/src/main.rs
+++ b/examples/pokedex/src/main.rs
@@ -27,12 +27,7 @@ enum Message {
}
impl Application for Pokedex {
- #[cfg(not(target_arch = "wasm32"))]
- type Executor = iced_futures::executor::Tokio;
-
- #[cfg(target_arch = "wasm32")]
- type Executor = iced_futures::executor::WasmBindgen;
-
+ type Executor = iced::executor::Default;
type Message = Message;
fn new() -> (Pokedex, Command<Message>) {