From 219d0fb0ab8f39679f31fc2630da47050e191514 Mon Sep 17 00:00:00 2001 From: SpanishPear Date: Wed, 6 Sep 2023 22:11:31 +1000 Subject: [PATCH] yew 0.20 upgrade but run will panic --- crates/mipsy_web/Cargo.toml | 6 +- crates/mipsy_web/index.html | 37 ++++++++-- crates/mipsy_web/src/bin/app.rs | 3 +- crates/mipsy_web/src/bin/worker.rs | 7 +- crates/mipsy_web/src/components/decompiled.rs | 6 +- crates/mipsy_web/src/components/navbar.rs | 16 ++--- crates/mipsy_web/src/components/registers.rs | 33 ++++----- .../src/components/settings_modal.rs | 14 ++-- crates/mipsy_web/src/pages/main/app.rs | 46 ++++++------- crates/mipsy_web/src/state/config.rs | 14 ++-- crates/mipsy_web/src/state/update.rs | 10 +-- crates/mipsy_web/src/worker.rs | 68 ++++++++++++------- 12 files changed, 145 insertions(+), 115 deletions(-) diff --git a/crates/mipsy_web/Cargo.toml b/crates/mipsy_web/Cargo.toml index 861c3334..e41792fc 100644 --- a/crates/mipsy_web/Cargo.toml +++ b/crates/mipsy_web/Cargo.toml @@ -9,8 +9,8 @@ crate-type = ["cdylib", "rlib"] [dependencies] -yew = "0.19.3" -yew-agent = "0.1.0" +yew = { version = "0.20", features = ["csr"] } +yew-agent = "0.2.0" gloo-file = "0.2.0" gloo-utils = { version = "0.1.5", features = ["serde"]} web-sys = { version="0.3.55", features=["Element", "EventTarget", "HtmlElement", "HtmlSelectElement"] } @@ -26,7 +26,7 @@ wasm-logger = "0.2.0" git-version = "0.3.5" derivative = "2.2.0" gloo-console = "0.2.1" -bounce = "0.3.0" +bounce = "0.7.0" serde_json = "1.0.82" # [profile.release] diff --git a/crates/mipsy_web/index.html b/crates/mipsy_web/index.html index 0f8b07a2..6c4373ca 100644 --- a/crates/mipsy_web/index.html +++ b/crates/mipsy_web/index.html @@ -12,15 +12,40 @@