diff --git a/Cargo.toml b/Cargo.toml index 283d850..74957dd 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -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,9 +19,9 @@ 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 lto = true -opt-level = 'z' \ No newline at end of file +opt-level = 'z' diff --git a/Makefile.toml b/Makefile.toml index 7c44bbf..b18b608 100755 --- a/Makefile.toml +++ b/Makefile.toml @@ -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 ---- diff --git a/src/lib.rs b/src/lib.rs index ae1ae0b..896c240 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,8 +43,6 @@ fn view(model: &Model) -> impl View { #[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(); } \ No newline at end of file