Allow switching executor::Default with features

This commit is contained in:
Héctor Ramón Jiménez 2020-02-06 03:56:21 +01:00
parent e8316b2087
commit ad500441af
6 changed files with 34 additions and 28 deletions

View file

@ -38,12 +38,7 @@ enum Message {
}
impl Application for Todos {
#[cfg(not(target_arch = "wasm32"))]
type Executor = iced_futures::executor::AsyncStd;
#[cfg(target_arch = "wasm32")]
type Executor = iced_futures::executor::WasmBindgen;
type Executor = iced::executor::Default;
type Message = Message;
fn new() -> (Todos, Command<Message>) {