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

Update deps and enable winit/x11 by default #436

Merged
merged 8 commits into from
Jan 24, 2024
Merged

Update deps and enable winit/x11 by default #436

merged 8 commits into from
Jan 24, 2024

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Jan 23, 2024

It turns out that examples were failing on X11 with a confusing message. rust-windowing/winit#3414 fixes the message; this PR adds X11 to the default feature selection.

Update dependencies: env_logger, cfg_aliases, resvg and most significantly wgpu.

Safe handling of the window/surface lifetime. For now this uses Arc<winit::window::Window> to ensure the window outlives the surface. A true (efficient) solution would be closer to the self-referential struct problem (though without the aliasing and pinning sub-problems); essentially we could "just" cast the lifetime to 'static, however there's no good way to do this without making new_surface unsafe or depend on WGPU (having wgpu::SurfaceTarget in raw-window-handle would help).

@dhardy dhardy merged commit 87b6615 into master Jan 24, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant