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

Enable winit backends when building egui-wgpu on docs.rs to fix failures #3907

Closed
wants to merge 1 commit into from

Conversation

Imberflur
Copy link

I tested that this command fails:

cargo doc -p egui-wgpu --all-features --no-deps 

And that this one, which I think will correspond to these changes, succeeds:

cargo doc -p egui-wgpu --all-features --features "winit/x11 winit/wayland" --no-deps 

#3492 should be fixed by this

Also, I noticed that the PR template and CONTRIBUTING.md mention running ./scripts/check.sh which in a few cases has the same issue of winit failing to build with no backends enabled. I guess this script hasn't been in use?

@YgorSouza
Copy link
Contributor

Maybe egui-wgpu should have the "x11" and "wayland" features like egui-winit and eframe do? Would that make sense?

@YgorSouza
Copy link
Contributor

egui_glow has the same problem, by the way.

@YgorSouza
Copy link
Contributor

I opened #3909 to try and solve the issue more broadly, if anyone wants to take a look.

@Imberflur
Copy link
Author

Imberflur commented Jan 28, 2024

Maybe egui-wgpu should have the "x11" and "wayland" features like egui-winit and eframe do? Would that make sense?

I'm not sure it makes sense if the user will need to separately depend on winit. I assume that this is the case here but I haven't looked very deeply into it.

@emilk emilk added docs and examples Improving and adding documentation and examples egui-wgpu labels Jan 29, 2024
@Imberflur
Copy link
Author

I believe this is no longer needed since #3909 merged

@Imberflur Imberflur closed this Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs and examples Improving and adding documentation and examples egui-wgpu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants