1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 23:00:04 -04:00

Add x11 and wayland features to egui-wgpu and egui_glow (#3909)

This allows them to build correctly on Linux by passing one or both of
the features alongside `winit`.

Closes #3492
Closes #2286
This commit is contained in:
YgorSouza
2024-01-30 16:55:55 +01:00
committed by GitHub
parent ca513ce241
commit d72f92c41d
5 changed files with 41 additions and 6 deletions

View File

@@ -31,9 +31,15 @@ all-features = true
## Enable profiling with the [`puffin`](https://docs.rs/puffin) crate.
puffin = ["dep:puffin"]
## Enable [`winit`](https://docs.rs/winit) integration.
## Enable [`winit`](https://docs.rs/winit) integration. On Linux, requires either `wayland` or `x11`
winit = ["dep:winit"]
## Enables Wayland support for winit.
wayland = ["winit?/wayland"]
## Enables x11 support for winit.
x11 = ["winit?/x11"]
[dependencies]
egui = { version = "0.25.0", path = "../egui", default-features = false }