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

@ -10,9 +10,8 @@ crate-type = ["cdylib"]
[dependencies]
seed = "^0.4.0"
wasm-bindgen = "^0.2.45"
web-sys = "^0.3.19"
seed = "^0.4.2"
wasm-bindgen = "^0.2.50"
# For serialization, eg sending requests to a server. Otherwise, not required.
serde = { version = "^1.0.85", features = ['derive'] }
@ -20,7 +19,7 @@ futures = "^0.1.26"
[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

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

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