Skip to content

ci: enable clippy for more crates #329

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 4 commits into from
Jul 11, 2025
Merged

ci: enable clippy for more crates #329

merged 4 commits into from
Jul 11, 2025

Conversation

Firestar99
Copy link
Member

clippy doesn't run on eg. compiletest and difftest and there's some code it's complaining about

@Firestar99 Firestar99 marked this pull request as ready for review July 11, 2025 09:56
@Firestar99 Firestar99 enabled auto-merge July 11, 2025 09:57
Copy link
Collaborator

@eddyb eddyb left a comment

Choose a reason for hiding this comment

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

Hmpf, unfortunate that we can't pass the features somehow, to a single cargo clippy --workspace invocation.

Alternatively, it might be nice to not have SPIRV-Tools' C++ code be compiled by spirv-tools-rs when built for cargo check/cargo clippy, but I don't recall if that's even feasible to do.

@Firestar99 Firestar99 added this pull request to the merge queue Jul 11, 2025
@Firestar99
Copy link
Member Author

I mean, you should be able to detect clippy in the build script and return. Currently, using cargo-gpu in a build script will fail cargo clippy on your project, so there really should be a way 😅

Merged via the queue into main with commit 9cb358c Jul 11, 2025
13 checks passed
@Firestar99 Firestar99 deleted the clippy-crates branch July 11, 2025 10:19
@Firestar99 Firestar99 mentioned this pull request Jul 11, 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.

2 participants