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

feat(hooks): add additional cargo-options #434

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

Conversation

sivizius
Copy link

This PR will add additional cargo-hooks (cargo-bench, cargo-doc and cargo-test) as well as additional options. I did not implement all possible options, because e.g. --quiet is not really useful in a git-hook. If you do not agree, I can implement them too. The lack of some options requires implementing custom cargo-hooks in my setup, which is somewhat annoying.

This PR will deprecate allFeatures and denyWarnings of clippy with a warning. The former was renamed to all-features while the latter can be achieved with deny = [ "warnings" ];. manifest-path is an option in each hook, which defaults to the global setting rust.cargoManifestPath, which makes it overridable. The additional hooks might not be very useful, because they will take some time, but someone might find them useful and it was possible due to the generic implementation. Additional cargo-hooks can be added quite easily now.

@sandydoo sandydoo added the new-hook A request for a new hook label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-hook A request for a new hook
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants