iced-yoda/wgpu/src
leyoda 702b6359a5 yoda: gate iced_wgpu x11 backend behind an opt-in feature
iced_wgpu's unix block unconditionally depended on as-raw-xcb-connection,
tiny-xlib and x11rb for a DRI3 device-id fallback in
window/compositor.rs that only fires when wayland can't determine the
GPU. On a Wayland-only build this code path never runs, so the deps
are pure bloat.

Changes:
- Cargo.toml: move the 3 x11 crates to optional + new feature `x11`
  (not in default — wayland-only is the yoda target; users who need
  X11 opt in).
- window.rs: cfg-gate `mod x11;` on feature = "x11"
- window/compositor.rs: cfg-gate `use super::x11::get_x11_device_ids`
  + the or_else fallback on feature = "x11" (wrapped in a let-binding
  so the non-x11 branch compiles cleanly).

Result: iced_wgpu no longer pulls any x11 crate when built without
the feature.
2026-07-02 18:42:13 +02:00
..
image chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
quad chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
shader feat: pop-os megasquash 2026-01-21 13:12:08 -05:00
triangle chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
window yoda: gate iced_wgpu x11 backend behind an opt-in feature 2026-07-02 18:42:13 +02:00
buffer.rs chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
color.rs chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
engine.rs Introduce Pipeline trait in wgpu::primitive 2025-11-25 09:36:25 +01:00
geometry.rs Introduce draw_mesh_cache in mesh::Renderer 2025-11-29 17:33:01 +01:00
layer.rs feat: pop-os megasquash 2026-01-21 13:12:08 -05:00
lib.rs chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
offscreen.rs feat: pop-os megasquash 2026-01-21 13:12:08 -05:00
primitive.rs Introduce Pipeline trait in wgpu::primitive 2025-11-25 09:36:25 +01:00
quad.rs chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
settings.rs feat: pop-os megasquash 2026-01-21 13:12:08 -05:00
text.rs Revert "fix(text): don't reload cache every redraw" 2026-05-29 16:43:44 -04:00
triangle.rs chore: update to wgpu 28 and cosmic-text 0.19 2026-04-27 14:35:24 +02:00
window.rs yoda: gate iced_wgpu x11 backend behind an opt-in feature 2026-07-02 18:42:13 +02:00