Skip to content

spirv-builder: check and clippy shortcuts#505

Merged
Firestar99 merged 1 commit intomainfrom
check_clippy_shortcuts
Feb 5, 2026
Merged

spirv-builder: check and clippy shortcuts#505
Firestar99 merged 1 commit intomainfrom
check_clippy_shortcuts

Conversation

@Firestar99
Copy link
Member

@nazar-pc ashed in Rust-GPU/cargo-gpu#131 (comment):

I'd appreciate some simple [to run cargo gpu clippy and check] way through cargo-gpu-install.

So I added these shortcuts, so you can run clippy in your build script, and afterwards still build your shaders without having to clone the SpirvBuilder.

Comment on lines +679 to +728
pub fn check(&mut self) -> Result<CompileResult, SpirvBuilderError> {
self.run_cargo_cmd("check")
}

/// Shortcut for `cargo clippy`
pub fn clippy(&mut self) -> Result<CompileResult, SpirvBuilderError> {
Copy link
Member Author

@Firestar99 Firestar99 Jan 7, 2026

Choose a reason for hiding this comment

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

I'm not a huge fan how these are &mut self but build() is only &self. But I also don't want to clone the entire SpirvBuilder just to change that one property, though it probably wouldn't matter performance-wise. Suggestions?

@Firestar99 Firestar99 force-pushed the check_clippy_shortcuts branch from 6299130 to c3f5488 Compare February 5, 2026 09:22
@Firestar99 Firestar99 enabled auto-merge February 5, 2026 09:22
@Firestar99 Firestar99 added this pull request to the merge queue Feb 5, 2026
Merged via the queue into main with commit e7e447a Feb 5, 2026
13 checks passed
@Firestar99 Firestar99 deleted the check_clippy_shortcuts branch February 5, 2026 10:17
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