Files
egui/scripts
Leo Timmins da7169ed1a Fix egui-winit compilation on wasm32 (#8516)
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.
2026-09-07 10:57:16 +02:00
..
2024-04-21 19:26:16 +02:00
2025-10-09 12:00:39 +02:00
2023-04-18 17:10:52 +02:00
2026-07-20 11:07:29 +02:00
2023-11-16 16:44:30 +01:00