Skip to content
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

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

YgorSouza
Copy link
Contributor

@YgorSouza YgorSouza commented Jan 28, 2024

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

Closes #3492
Closes #2286

Comment on lines +34 to +42
## 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"]

Copy link
Owner

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?

Copy link
Contributor Author

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.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I see

Copy link
Owner

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 ?

@emilk emilk added egui_glow Relates to running egui_glow on native egui-wgpu labels Jan 30, 2024
@emilk emilk changed the title Add x11 and wayland features to egui-wgpu and egui_glow Add x11 and wayland features to egui-wgpu and egui_glow Jan 30, 2024
@emilk emilk merged commit d72f92c into emilk:master Jan 30, 2024
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui_glow Relates to running egui_glow on native egui-wgpu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

egui-wgpu docs failed to build on docs.rs egui-glow fails cargo check --all-features
2 participants