Remove wasm_bindgen(start)
from tour
example
This commit is contained in:
parent
f719ba3f4e
commit
679d758627
@ -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"
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user