From 01a9b317d4a6710547b8b0c0c476cc3b82251044 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Tue, 26 Aug 2025 00:42:23 -0700 Subject: [PATCH] deps: Upgrade `surfman` to 0.10.0 (#38914) Fixes: #38902 Signed-off-by: Martin Robinson --- Cargo.lock | 241 ++++++++++++++++++----------------------------------- Cargo.toml | 2 +- deny.toml | 4 - 3 files changed, 83 insertions(+), 164 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d738f8e7f44..076c1027192 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1341,36 +1341,6 @@ dependencies = [ "cc", ] -[[package]] -name = "cocoa" -version = "0.25.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6140449f97a6e97f9511815c5632d84c8aacf8ac271ad77c559218161a1373c" -dependencies = [ - "bitflags 1.3.2", - "block", - "cocoa-foundation", - "core-foundation 0.9.4", - "core-graphics", - "foreign-types 0.5.0", - "libc", - "objc", -] - -[[package]] -name = "cocoa-foundation" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7" -dependencies = [ - "bitflags 1.3.2", - "block", - "core-foundation 0.9.4", - "core-graphics-types", - "libc", - "objc", -] - [[package]] name = "codespan-reporting" version = "0.12.0" @@ -1639,7 +1609,7 @@ dependencies = [ "bitflags 1.3.2", "core-foundation 0.9.4", "core-graphics-types", - "foreign-types 0.5.0", + "foreign-types", "libc", ] @@ -1662,7 +1632,7 @@ checksum = "c9d2790b5c08465d49f8dc05c8bcae9fea467855947db39b0f8145c091aaced5" dependencies = [ "core-foundation 0.9.4", "core-graphics", - "foreign-types 0.5.0", + "foreign-types", "libc", ] @@ -2756,15 +2726,6 @@ dependencies = [ "cc", ] -[[package]] -name = "foreign-types" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" -dependencies = [ - "foreign-types-shared 0.1.1", -] - [[package]] name = "foreign-types" version = "0.5.0" @@ -2772,7 +2733,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" dependencies = [ "foreign-types-macros", - "foreign-types-shared 0.3.1", + "foreign-types-shared", ] [[package]] @@ -2786,12 +2747,6 @@ dependencies = [ "syn", ] -[[package]] -name = "foreign-types-shared" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" - [[package]] name = "foreign-types-shared" version = "0.3.1" @@ -3659,7 +3614,7 @@ dependencies = [ "cc", "core-graphics", "core-text", - "foreign-types 0.5.0", + "foreign-types", "freetype-sys", "pkg-config", "winapi", @@ -4557,18 +4512,6 @@ dependencies = [ "mach2", ] -[[package]] -name = "io-surface" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "861c6093cbc05599e66436aedf380bb0a23cec2180738393d3a340b80dd135ef" -dependencies = [ - "cgl", - "core-foundation 0.9.4", - "leaky-cow", - "libc", -] - [[package]] name = "io-uring" version = "0.7.10" @@ -4867,21 +4810,6 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" -[[package]] -name = "leak" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd100e01f1154f2908dfa7d02219aeab25d0b9c7fa955164192e3245255a0c73" - -[[package]] -name = "leaky-cow" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40a8225d44241fd324a8af2806ba635fc7c8a7e9a7de4d5cf3ef54e71f5926fc" -dependencies = [ - "leak", -] - [[package]] name = "lebe" version = "0.5.2" @@ -5201,20 +5129,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "metal" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de11355d1f6781482d027a3b4d4de7825dcedb197bf573e0596d00008402d060" -dependencies = [ - "bitflags 1.3.2", - "block", - "core-graphics-types", - "foreign-types 0.3.2", - "log", - "objc", -] - [[package]] name = "metal" version = "0.31.0" @@ -5224,7 +5138,7 @@ dependencies = [ "bitflags 2.9.3", "block", "core-graphics-types", - "foreign-types 0.5.0", + "foreign-types", "log", "objc", "paste", @@ -5745,7 +5659,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" dependencies = [ "malloc_buf", - "objc_exception", ] [[package]] @@ -5797,7 +5710,7 @@ dependencies = [ "objc2-core-data", "objc2-core-image", "objc2-foundation 0.2.2", - "objc2-quartz-core", + "objc2-quartz-core 0.2.2", ] [[package]] @@ -5808,7 +5721,9 @@ checksum = "e6f29f568bec459b0ddff777cec4fe3fd8666d82d5a40ebd0ff7e66134f89bcc" dependencies = [ "bitflags 2.9.3", "objc2 0.6.1", + "objc2-core-foundation", "objc2-foundation 0.3.1", + "objc2-quartz-core 0.3.1", ] [[package]] @@ -5858,6 +5773,16 @@ dependencies = [ "objc2 0.6.1", ] +[[package]] +name = "objc2-core-graphics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "989c6c68c13021b5c2d6b71456ebb0f9dc78d752e86a98da7c716f4f9470f5a4" +dependencies = [ + "bitflags 2.9.3", + "objc2-core-foundation", +] + [[package]] name = "objc2-core-image" version = "0.2.2" @@ -5867,7 +5792,7 @@ dependencies = [ "block2", "objc2 0.5.2", "objc2-foundation 0.2.2", - "objc2-metal", + "objc2-metal 0.2.2", ] [[package]] @@ -5882,6 +5807,17 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-core-video" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1989c3e76c7e978cab0ba9e6f4961cd00ed14ca21121444cc26877403bfb6303" +dependencies = [ + "bitflags 2.9.3", + "objc2-core-foundation", + "objc2-core-graphics", +] + [[package]] name = "objc2-encode" version = "4.1.0" @@ -5922,6 +5858,18 @@ dependencies = [ "objc2-core-foundation", ] +[[package]] +name = "objc2-io-surface" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7282e9ac92529fa3457ce90ebb15f4ecbc383e8338060960760fa2cf75420c3c" +dependencies = [ + "bitflags 2.9.3", + "libc", + "objc2 0.6.1", + "objc2-core-foundation", +] + [[package]] name = "objc2-link-presentation" version = "0.2.2" @@ -5946,6 +5894,17 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-metal" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f246c183239540aab1782457b35ab2040d4259175bd1d0c58e46ada7b47a874" +dependencies = [ + "bitflags 2.9.3", + "objc2 0.6.1", + "objc2-foundation 0.3.1", +] + [[package]] name = "objc2-quartz-core" version = "0.2.2" @@ -5956,7 +5915,19 @@ dependencies = [ "block2", "objc2 0.5.2", "objc2-foundation 0.2.2", - "objc2-metal", + "objc2-metal 0.2.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90ffb6a0cd5f182dc964334388560b12a57f7b74b3e2dec5e2722aa2dfb2ccd5" +dependencies = [ + "bitflags 2.9.3", + "objc2 0.6.1", + "objc2-core-foundation", + "objc2-foundation 0.3.1", ] [[package]] @@ -5984,7 +5955,7 @@ dependencies = [ "objc2-core-location", "objc2-foundation 0.2.2", "objc2-link-presentation", - "objc2-quartz-core", + "objc2-quartz-core 0.2.2", "objc2-symbols", "objc2-uniform-type-identifiers", "objc2-user-notifications", @@ -6014,15 +5985,6 @@ dependencies = [ "objc2-foundation 0.2.2", ] -[[package]] -name = "objc_exception" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" -dependencies = [ - "cc", -] - [[package]] name = "objc_id" version = "0.1.1" @@ -7577,19 +7539,6 @@ dependencies = [ "serde", ] -[[package]] -name = "servo-display-link" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1060be2a0bbc35e712ec35ae98119b8def1071a5f2edbe392fd4c899bc2a5f4" -dependencies = [ - "foreign-types 0.3.2", - "objc", - "objc-foundation", - "thiserror 1.0.69", - "time-point", -] - [[package]] name = "servo-media" version = "0.1.0" @@ -8384,31 +8333,33 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "surfman" -version = "0.9.8" -source = "git+https://github.com/servo/surfman?rev=f7688b4585f9e0b5d4bf8ee8e4a91e82349610b1#f7688b4585f9e0b5d4bf8ee8e4a91e82349610b1" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab6d64f9d99bbbab83405a1aa65ac373e4f98440df9912ea8a3640bf164da234" dependencies = [ "bitflags 2.9.3", "cfg_aliases", "cgl", - "cocoa", - "core-foundation 0.9.4", - "core-graphics", "euclid", "fnv", "gl_generator", "glow", - "io-surface", "libc", "log", "mach2", - "metal 0.24.0", - "objc", + "objc2 0.6.1", + "objc2-app-kit 0.3.1", + "objc2-core-foundation", + "objc2-core-video", + "objc2-foundation 0.3.1", + "objc2-io-surface", + "objc2-metal 0.3.1", + "objc2-quartz-core 0.3.1", "raw-window-handle", - "servo-display-link", - "wayland-sys 0.30.1", + "wayland-sys", "winapi", "wio", - "x11", + "x11-dl", ] [[package]] @@ -8685,12 +8636,6 @@ dependencies = [ "time-core", ] -[[package]] -name = "time-point" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06535c958d6abe68dc4b4ef9e6845f758fc42fe463d0093d0aca40254f03fb14" - [[package]] name = "timers" version = "0.0.1" @@ -9521,7 +9466,7 @@ dependencies = [ "rustix 1.0.8", "scoped-tls", "smallvec", - "wayland-sys 0.31.7", + "wayland-sys", ] [[package]] @@ -9607,18 +9552,6 @@ dependencies = [ "quote", ] -[[package]] -name = "wayland-sys" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96b2a02ac608e07132978689a6f9bf4214949c85998c247abadd4f4129b1aa06" -dependencies = [ - "dlib", - "lazy_static", - "log", - "pkg-config", -] - [[package]] name = "wayland-sys" version = "0.31.7" @@ -10003,7 +9936,7 @@ dependencies = [ "libc", "libloading", "log", - "metal 0.31.0", + "metal", "naga", "ndk-sys 0.5.0+25.2.9519653", "objc", @@ -10607,16 +10540,6 @@ dependencies = [ "either", ] -[[package]] -name = "x11" -version = "2.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" -dependencies = [ - "libc", - "pkg-config", -] - [[package]] name = "x11-dl" version = "2.21.0" diff --git a/Cargo.toml b/Cargo.toml index 8eeb6629953..d395e335b9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -148,7 +148,7 @@ stylo_config = { git = "https://github.com/servo/stylo", branch = "2025-08-01" } stylo_dom = { git = "https://github.com/servo/stylo", branch = "2025-08-01" } stylo_malloc_size_of = { git = "https://github.com/servo/stylo", branch = "2025-08-01" } stylo_traits = { git = "https://github.com/servo/stylo", branch = "2025-08-01" } -surfman = { git = "https://github.com/servo/surfman", rev = "f7688b4585f9e0b5d4bf8ee8e4a91e82349610b1", features = ["chains"] } +surfman = { version = "0.10.0", features = ["chains"] } syn = { version = "2", default-features = false, features = ["clone-impls", "derive", "parsing"] } synstructure = "0.13" taffy = { version = "0.9", default-features = false, features = ["calc", "detailed_layout_info", "grid", "std"] } diff --git a/deny.toml b/deny.toml index e746aa40155..af3b8314b20 100644 --- a/deny.toml +++ b/deny.toml @@ -86,7 +86,6 @@ skip = [ "cookie", "futures", "redox_syscall", - "wayland-sys", # Duplicated by aws-lc-rs "bindgen", @@ -117,9 +116,6 @@ skip = [ "windows_x86_64_msvc", # wgpu has the latest and greatest. - "foreign-types", - "foreign-types-shared", - "metal", "windows-core", # wgpu-hal depends on 0.5.0.