Skip to content

Put wgpu's default features behind a 'wgpu_default' feature flag#1229

Merged
DJMcNab merged 8 commits into
linebender:mainfrom
StT191:main
Sep 22, 2025
Merged

Put wgpu's default features behind a 'wgpu_default' feature flag#1229
DJMcNab merged 8 commits into
linebender:mainfrom
StT191:main

Conversation

@StT191

@StT191 StT191 commented Sep 17, 2025

Copy link
Copy Markdown
Contributor

This PR enables users of vello to disable wgpu's default features (see #1225). This is especially useful as wgpu allows enabling and disabling of all backends via feature flags since version 25.0.0.

The previous behavior is behind an new feature flag wgpu_default that is included in vellos's default features so current users of vello who rely on them don't get surprised.

@StT191 StT191 force-pushed the main branch 2 times, most recently from 669c873 to d5215e4 Compare September 17, 2025 13:24

@DJMcNab DJMcNab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good, thanks. There are a few minor details I'd like to see done differently; let me know if you want me to take over. I'd also like to get confirmation from Andrew that this won't cause issues, as it is technically a breaking change to Vello Hybrid.

Can you please also add this to the CHANGELOG. That changelog currently only covers the root "Vello" crate, so only needs to mention that change. I'd add it to the "changed" section. It is technically a breaking change, so let's mark it as such (even though it's very minor).

Comment thread sparse_strips/vello_hybrid/Cargo.toml Outdated
Comment thread sparse_strips/vello_hybrid/Cargo.toml Outdated
Comment thread vello/Cargo.toml
Comment thread vello/src/wgpu_engine.rs Outdated

@DJMcNab DJMcNab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! I've pushed a few final tweaks.

Let me know if you are ready for this to land (i.e. if you have any comment on my tweaks).
I'll merge this soon if I don't hear from you.

@DJMcNab DJMcNab added C-classic Applies to the classic `vello` crate C-hybrid Applies to the vello_hybrid crate labels Sep 18, 2025
@StT191

StT191 commented Sep 19, 2025

Copy link
Copy Markdown
Contributor Author

Thank you! I've pushed a few final tweaks.

Let me know if you are ready for this to land (i.e. if you have any comment on my tweaks). I'll merge this soon if I don't hear from you.

I'm absolutely onboard with this. Great experience to get involved.
Love to see it get merged soon.

@DJMcNab DJMcNab added this pull request to the merge queue Sep 22, 2025
Merged via the queue into linebender:main with commit 4e11208 Sep 22, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-classic Applies to the classic `vello` crate C-hybrid Applies to the vello_hybrid crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disabling default-features for wgpu dependency in Cargo.toml?

3 participants