Commit e3c3a6c
fix(frontend): keep wgpu out of the WASM build
eframe 0.34.2 added `wgpu` to its `default` feature set (it was not a
default in 0.34.1, which the #580 cargo update bumped past). That pulled
wgpu-core into the wasm32-unknown-unknown build, where it fails to
compile (`cannot find value Vulkan in module hal::api`).
Disable eframe's default features at the workspace level and re-add the
features that previously came from `default`:
- native: wgpu, accesskit, wayland, x11
- wasm: web_screen_reader (glow comes from the workspace-level features)
Gate the `CreationContext::wgpu_render_state` access in info_page.rs
behind cfg(not(wasm32)); that field only exists with the wgpu feature,
so WASM now falls through to the glow/WebGL branch.
Cargo.lock drops the Wayland/Adwaita client-side-decoration chain
(sctk-adwaita, tiny-skia, ttf-parser, ...) that only came in via
winit/default.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a578c01 commit e3c3a6c
4 files changed
Lines changed: 17 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
64 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
0 commit comments