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 wgpu 0.20 -> 22 && vger 0.3 -> 0.4 #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maaku
Copy link
Contributor

@maaku maaku commented Sep 7, 2024

With vger having released a new version with wgpu v221, it is time to update rui's dependencies as well. This patch updates the vger dependency to 0.4, and the pegged wgpu version to 22. The only code change required was in the winit logic, which requires you to hint for optimizing for either Performance or MemoryUsage. I chose Performance.

Since many vger applications (including my own) create and manage wgpu devices and render contexts themselves, updating the wgpu dependency is a breaking change for them. I recommend doing a new major release of rui.

@Leif-Rydenfalk
Copy link
Contributor

Leif-Rydenfalk commented Jan 22, 2025

It is possible to use multiple versions of a crate simultaneously without causing breaking changes. This can be achieved by explicitly specifying different versions of the same crate in the Cargo.toml file. For example, in the case of the wgpu crate, we can define multiple versions as follows:

[dependencies]
wgpu_20 = { package = "wgpu", version = "0.20" }
wgpu_22 = { package = "wgpu", version = "0.22" }

This approach allows the user to select which version to use by enabling the appropriate feature.

For more information, see the original discussion on Stack Overflow.

Edit: Found a example of this being used here: Github - egui theme

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.

2 participants