From 7ee49d8c026f4bb7a48801570df54c329bd8cdcb Mon Sep 17 00:00:00 2001 From: David Mann Date: Fri, 27 Nov 2026 14:39:02 +0100 Subject: [PATCH] CI: fix the Windows 32bit GNU, web clippy and example failures - Windows 32bit GNU (stable, nightly): Rust 1.100 no longer ships host tools for i686-pc-windows-gnu, so the toolchain can't be installed (upstream dropped the job in rust-windowing/winit 6853ca5e). Only stable and nightly are excluded; 1.70.0 still covers the target. - web clippy (stable): code generated by #[wasm_bindgen] in newer wasm-bindgen releases uses const features stable since 1.77, which clippy::incompatible_msrv reports against the 1.70 MSRV. Allowed on the web module; the MSRV build locks an older wasm-bindgen. - Android, iOS, Redox: clipboard_native_probe was gated on all(unix, not(macos), feature = "wayland"), which those targets match. It uses the wayland_platform alias now. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 7 +++++++ examples/clipboard_native_probe.rs | 6 +++--- src/platform_impl/mod.rs | 4 ++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 232737e8..bc13cae1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,13 @@ jobs: - { name: 'iOS Aarch64', target: aarch64-apple-ios, os: macos-latest, } - { name: 'web', target: wasm32-unknown-unknown, os: ubuntu-latest, } exclude: + # Rust 1.100 no longer ships host tools for i686-pc-windows-gnu, so the + # stable-i686-pc-windows-gnu and nightly toolchains can't be installed. 1.70.0 still + # covers the target. + - toolchain: stable + platform: { name: 'Windows 32bit GNU' } + - toolchain: nightly + platform: { name: 'Windows 32bit GNU' } # Android is tested on stable-3 - toolchain: '1.70.0' platform: { name: 'Android', target: aarch64-linux-android, os: ubuntu-latest, options: '--package=winit --features=android-native-activity', cmd: 'apk --' } diff --git a/examples/clipboard_native_probe.rs b/examples/clipboard_native_probe.rs index 0872b914..d932a6a2 100644 --- a/examples/clipboard_native_probe.rs +++ b/examples/clipboard_native_probe.rs @@ -1,5 +1,5 @@ //! Opt-in native protocol probe; driven by a private compositor, never a user's clipboard. -#[cfg(all(unix, not(target_os = "macos"), feature = "wayland"))] +#[cfg(wayland_platform)] mod probe { use std::sync::Arc; use std::time::{Duration, Instant}; @@ -212,10 +212,10 @@ mod probe { event_loop.run_app(&mut app).expect("native probe event loop"); } } -#[cfg(all(unix, not(target_os = "macos"), feature = "wayland"))] +#[cfg(wayland_platform)] #[path = "util/fill.rs"] mod fill; fn main() { - #[cfg(all(unix, not(target_os = "macos"), feature = "wayland"))] + #[cfg(wayland_platform)] probe::run(); } diff --git a/src/platform_impl/mod.rs b/src/platform_impl/mod.rs index 3bfce688..c27bf996 100644 --- a/src/platform_impl/mod.rs +++ b/src/platform_impl/mod.rs @@ -12,6 +12,10 @@ mod macos; #[cfg(orbital_platform)] mod orbital; #[cfg(web_platform)] +// The code `#[wasm_bindgen]` generates in newer wasm-bindgen releases uses `const` features +// stable since Rust 1.77, which clippy reports against the 1.70 MSRV. The MSRV build locks an +// older wasm-bindgen. +#[allow(clippy::incompatible_msrv)] mod web; #[cfg(windows_platform)] mod windows;