master
David O'Connor 5 years ago
parent 2980c62f9f
commit 13c62e53a4

@ -10,9 +10,8 @@ crate-type = ["cdylib"]
[dependencies] [dependencies]
seed = "^0.4.0" seed = "^0.4.2"
wasm-bindgen = "^0.2.45" wasm-bindgen = "^0.2.50"
web-sys = "^0.3.19"
# For serialization, eg sending requests to a server. Otherwise, not required. # For serialization, eg sending requests to a server. Otherwise, not required.
serde = { version = "^1.0.85", features = ['derive'] } serde = { version = "^1.0.85", features = ['derive'] }
@ -20,9 +19,9 @@ futures = "^0.1.26"
[dev-dependencies] [dev-dependencies]
wasm-bindgen-test = "0.2.45" # NOTE: keep in sync with wasm-bindgen version wasm-bindgen-test = "0.2.50" # NOTE: keep in sync with wasm-bindgen version
[profile.release] # Attempts to minimize file size [profile.release] # Attempts to minimize file size
lto = true lto = true
opt-level = 'z' opt-level = 'z'

@ -51,6 +51,11 @@ workspace = false
command = "microserver" command = "microserver"
args = ["--port", "${PORT}"] args = ["--port", "${PORT}"]
[tasks.start]
description = "Combine the build and serve tasks"
workspace = false
dependencies = ["build", "serve"]
# ---- LINT ---- # ---- LINT ----

@ -43,8 +43,6 @@ fn view(model: &Model) -> impl View<Msg> {
#[wasm_bindgen(start)] #[wasm_bindgen(start)]
pub fn render() { pub fn render() {
seed::App::build(|_, _| Model::default(), update, view) seed::App::build(|_, _| Init::new(Model::default()), update, view)
.finish() .build_and_run();
.run();
} }
Loading…
Cancel
Save