diff --git a/Cargo.lock b/Cargo.lock index 8a606e0cc9c..6107ea5cc4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1552,9 +1552,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.3.1" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "html-escape" @@ -1862,7 +1862,7 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi 0.3.1", + "hermit-abi 0.3.9", "libc", "windows-sys 0.48.0", ] @@ -1879,7 +1879,7 @@ version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" dependencies = [ - "hermit-abi 0.3.1", + "hermit-abi 0.3.9", "io-lifetimes", "rustix 0.37.25", "windows-sys 0.48.0", @@ -2126,13 +2126,14 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.11" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ + "hermit-abi 0.3.9", "libc", "wasi", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -3262,28 +3263,27 @@ dependencies = [ [[package]] name = "tokio" -version = "1.38.1" +version = "1.39.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb2caba9f80616f438e09748d5acda951967e1ea58508ef53d9c6402485a46df" +checksum = "daa4fb1bc778bd6f04cbfc4bb2d06a7396a8f299dc33ea1900cedaa316f467b1" dependencies = [ "backtrace", "bytes", "libc", "mio", - "num_cpus", "parking_lot", "pin-project-lite", "signal-hook-registry", "socket2", "tokio-macros", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "tokio-macros" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" +checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", diff --git a/packages/yew-macro/src/html_tree/lint/mod.rs b/packages/yew-macro/src/html_tree/lint/mod.rs index 60e8cd15262..82b0c351f04 100644 --- a/packages/yew-macro/src/html_tree/lint/mod.rs +++ b/packages/yew-macro/src/html_tree/lint/mod.rs @@ -11,7 +11,6 @@ use crate::props::{ElementProps, Prop}; /// Lints HTML elements to check if they are well formed. If the element is not well-formed, then /// use `proc-macro-error` (and the `emit_warning!` macro) to produce a warning. At present, these /// are only emitted on nightly. -#[allow(dead_code)] pub trait Lint { #[cfg_attr(not(yew_lints), allow(dead_code))] fn lint(element: &HtmlElement); diff --git a/packages/yew/Cargo.toml b/packages/yew/Cargo.toml index 4927dd3537c..99faae53629 100644 --- a/packages/yew/Cargo.toml +++ b/packages/yew/Cargo.toml @@ -40,7 +40,7 @@ wasm-bindgen-futures = "0.4" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] # We still need tokio as we have docs linked to it. -tokio = { version = "1.38", features = ["rt"] } +tokio = { version = "1.39", features = ["rt"] } [dependencies.web-sys] version = "^0.3.69" @@ -79,10 +79,10 @@ features = [ ] [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -tokio = { version = "1.38", features = ["full"] } +tokio = { version = "1.39", features = ["full"] } [target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies] -tokio = { version = "1.33", features = ["macros", "rt", "time"] } +tokio = { version = "1.39", features = ["macros", "rt", "time"] } [dev-dependencies] wasm-bindgen-test = "0.3" @@ -106,4 +106,3 @@ rustdoc-args = ["--cfg", "documenting"] [lints.rust] unexpected_cfgs = { level = "allow", check-cfg = ['cfg(nightly_yew)'] } - diff --git a/packages/yew/src/html/component/lifecycle.rs b/packages/yew/src/html/component/lifecycle.rs index 1992f551fc5..f8e46942c6f 100644 --- a/packages/yew/src/html/component/lifecycle.rs +++ b/packages/yew/src/html/component/lifecycle.rs @@ -146,7 +146,6 @@ where /// /// Mostly a thin wrapper that passes the context to a component's lifecycle /// methods. -#[allow(dead_code)] pub(crate) trait Stateful { fn view(&self) -> HtmlResult; #[cfg(feature = "csr")] diff --git a/tools/benchmark-ssr/Cargo.toml b/tools/benchmark-ssr/Cargo.toml index bc0afa2258a..b399b73bcd9 100644 --- a/tools/benchmark-ssr/Cargo.toml +++ b/tools/benchmark-ssr/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] yew = { path = "../../packages/yew", features = ["ssr"] } function_router = { path = "../../examples/function_router" } -tokio = { version = "1.38", features = ["full"] } +tokio = { version = "1.39", features = ["full"] } average = "0.15.1" tabled = "0.15.0" indicatif = "0.17.8"