From a5d4c49ec69791c5ab41bd07b7bcfd68e4113f3e Mon Sep 17 00:00:00 2001 From: Euclid Ye Date: Tue, 29 Jul 2025 17:45:22 +0800 Subject: [PATCH] cargo: Use workspace dependency for `winit` and upgrade to 0.30.12 (#38261) Use workspace dependency to sync the `winit` version between examples & libservo. Upgrade winit to 0.30.12. Fixes: The hope is lost as it doesn't fix anything.. --------- Signed-off-by: Euclid Ye --- Cargo.lock | 20 ++++++++++---------- Cargo.toml | 1 + components/servo/Cargo.toml | 3 +-- ports/servoshell/Cargo.toml | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index edbf3e25640..e14b4f7ffcc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1359,7 +1359,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c" dependencies = [ "lazy_static", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2387,7 +2387,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -3035,7 +3035,7 @@ dependencies = [ "gobject-sys", "libc", "system-deps", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -4544,7 +4544,7 @@ checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9" dependencies = [ "hermit-abi", "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -6985,7 +6985,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys 0.4.15", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -6998,7 +6998,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys 0.9.4", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -8385,7 +8385,7 @@ dependencies = [ "getrandom 0.3.3", "once_cell", "rustix 1.0.8", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -9920,7 +9920,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -10320,9 +10320,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winit" -version = "0.30.11" +version = "0.30.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4409c10174df8779dc29a4788cac85ed84024ccbc1743b776b21a520ee1aaf4" +checksum = "c66d4b9ed69c4009f6321f762d6e61ad8a2389cd431b97cb1e146812e9e6c732" dependencies = [ "ahash", "android-activity", diff --git a/Cargo.toml b/Cargo.toml index d52806e6f64..a800a401472 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -180,6 +180,7 @@ wgpu-core = "25" wgpu-types = "25" winapi = "0.3" windows-sys = "0.59" +winit = "0.30.12" wio = "0.2" wr_malloc_size_of = { git = "https://github.com/servo/webrender", branch = "0.67" } xi-unicode = "0.3.0" diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml index 5d9d9415cf0..2c1f75dca13 100644 --- a/components/servo/Cargo.toml +++ b/components/servo/Cargo.toml @@ -140,8 +140,7 @@ http = { workspace = true } libservo = { path = ".", features = ["tracing"] } rustls = { version = "0.23", default-features = false, features = ["aws-lc-rs"] } tracing = { workspace = true } -winit = "0.30.8" - +winit = { workspace = true } [[test]] name = "webview" diff --git a/ports/servoshell/Cargo.toml b/ports/servoshell/Cargo.toml index 640f238f40a..f3aaac47921 100644 --- a/ports/servoshell/Cargo.toml +++ b/ports/servoshell/Cargo.toml @@ -123,7 +123,7 @@ serde_json = { workspace = true } # For optional feature servo_allocator/use-system-allocator servo_allocator = { path = "../../components/allocator" } surfman = { workspace = true, features = ["sm-raw-window-handle-06", "sm-x11"] } -winit = "0.30.11" +winit = { workspace = true } [target.'cfg(any(all(target_os = "linux", not(target_env = "ohos")), target_os = "macos"))'.dependencies] sig = "1.0"