Remove wasm_bindgen(start) from tour example

This commit is contained in:
Héctor Ramón Jiménez 2020-02-06 05:23:05 +01:00
parent f719ba3f4e
commit 679d758627
2 changed files with 0 additions and 16 deletions

View File

@ -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"

View File

@ -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()
}
}