From 995058bbd10d8c877d49d18b2f78fc65066cb960 Mon Sep 17 00:00:00 2001 From: Alexander Nadeau Date: Sun, 30 Mar 2025 08:04:07 -0400 Subject: [PATCH] Update web-sys min version to 0.3.73 (#5862) This should prevent compilation errors (which I ran into) where eframe tries to use HtmlElement::set_autofocus(), which doesn't exist until 0.3.73. ``` error[E0599]: no method named `set_autofocus` found for struct `HtmlElement` in the current scope --> C:\Users\wareya\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\eframe-0.31.1\src\web\text_agent.rs:24:15 | 24 | input.set_autofocus(true)?; | ^^^^^^^^^^^^^ | help: there is a method `set_onfocus` with a similar name | 24 | input.set_onfocus(true)?; | ~~~~~~~~~~~ ``` * [x] I have followed the instructions in the PR template --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 92f1ce3c..cb750bfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -100,7 +100,7 @@ thiserror = "1.0.37" type-map = "0.5.0" wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" -web-sys = "0.3.70" +web-sys = "0.3.73" web-time = "1.1.0" # Timekeeping for native and web wgpu = { version = "24.0.0", default-features = false } windows-sys = "0.59"