-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add x11
and wayland
features to egui-wgpu and egui_glow
#3909
Conversation
winit does not build otherwise.
It does not seem to be needed in this case.
## 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"] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a user is using egui-wgpu
with the winit
feature, they are also depending directly on winit
, and can set the x11/wayland
features themselves, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but then you have to think about that when running cargo check
, cargo doc
etc, which is the problem noted in the issues. Technically you don't have to enable these features in a real project, they just help make the repo more ergonomic to work with. I don't know if there is a better solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem would still happen with cargo check
though, just not with cargo check --all-features
?
x11
and wayland
features to egui-wgpu and egui_glow
This allows them to build correctly on Linux by passing one or both of the features alongside `winit`. Closes emilk#3492 Closes emilk#2286
This allows them to build correctly on Linux by passing one or both of the features alongside
winit
.Closes #3492
Closes #2286