From 679d758627f6500de4b2220c0dba3460871b83b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 6 Feb 2020 05:23:05 +0100 Subject: [PATCH] Remove `wasm_bindgen(start)` from `tour` example --- examples/tour/Cargo.toml | 3 --- examples/tour/src/main.rs | 13 ------------- 2 files changed, 16 deletions(-) diff --git a/examples/tour/Cargo.toml b/examples/tour/Cargo.toml index 45105c31..96749e90 100644 --- a/examples/tour/Cargo.toml +++ b/examples/tour/Cargo.toml @@ -8,6 +8,3 @@ publish = false [dependencies] iced = { path = "../..", features = ["image", "debug"] } env_logger = "0.7" - -[target.'cfg(target_arch = "wasm32")'.dependencies] -wasm-bindgen = "0.2.51" diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 43c7e50f..800254ed 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -779,16 +779,3 @@ mod style { } } } - -// This should be gracefully handled by Iced in the future. Probably using our -// own proc macro, or maybe the whole process is streamlined by `wasm-pack` at -// some point. -#[cfg(target_arch = "wasm32")] -mod wasm { - use wasm_bindgen::prelude::*; - - #[wasm_bindgen(start)] - pub fn run() { - super::main() - } -}