Skip to content

Fix build with profiling enabled #7509

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

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

waywardmonkeys
Copy link
Contributor

Connections
Wumpf/wgpu-profiler#95

Description
When building with profiling/profile-with-tracy or similar enabled, then alloc::format must be in scope to compile some code.

This breaks the build for wgpu-profiler with wgpu 25.

Testing
Ran cargo clippy --tests --features profiling/profile-with-tracy

Squash or Rebase?
N/A

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@waywardmonkeys
Copy link
Contributor Author

I think that CI failure isn't due to my changes.

@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Apr 10, 2025
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

One note - thanks for this!

When building with `profiling/profile-with-tracy` or similar
enabled, then `alloc::format` must be in scope to compile some
code.

This breaks the build for `wgpu-profiler` with wgpu 25.
@cwfitzgerald cwfitzgerald enabled auto-merge (squash) April 11, 2025 00:28
@cwfitzgerald cwfitzgerald merged commit dde9422 into gfx-rs:trunk Apr 11, 2025
37 checks passed
@waywardmonkeys waywardmonkeys deleted the fix-profiling-build branch April 11, 2025 00:34
@torokati44
Copy link
Contributor

I tried bumping egui to wgpu 25.0.0, and also got blocked on this immediately. Is a patch release for wgpu-core planned soon?

@cwfitzgerald
Copy link
Member

I'll get it out today

cwfitzgerald pushed a commit to cwfitzgerald/wgpu that referenced this pull request Apr 11, 2025
@cwfitzgerald cwfitzgerald mentioned this pull request Apr 11, 2025
ErichDonGubler pushed a commit that referenced this pull request Apr 11, 2025
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Apr 11, 2025
Vecvec pushed a commit to Vecvec/wgpu that referenced this pull request Apr 11, 2025
jimblandy pushed a commit to jimblandy/wgpu that referenced this pull request Apr 18, 2025
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.

3 participants