mirror of
https://github.com/storytold/egui.git
synced 2026-11-19 09:01:37 +01:00
Disclosure - AI written PR with GPT 6 I was unable to compile for wasm on my project because I use egui-winnit instead of eframe See AI explanation below: ## Summary * Fixes #8436 `egui-winit` unconditionally compiled `NativeFile`, which implements `DroppedFile::bytes()`. On wasm32, the trait requires `bytes_async()` instead, causing compilation to fail. This change gates the native file implementation and its usage to native targets. An explicit wasm fallback ignores dropped-file events, which winit’s web backend does not emit. Adds a direct wasm compilation check to CI and the local check script, since eframe’s wasm builds do not compile egui-winit. ## Validation - wasm32 compilation with default features disabled passes. - Native Linux/X11 compilation passes. - Formatting and shell syntax checks pass. - Strict wasm Clippy encounters six existing, unrelated warnings in clipboard.rs.