-
Notifications
You must be signed in to change notification settings - Fork 1k
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
chore: Add cargo-hack
to check features
#105
Conversation
Signed-off-by: Lucio Franco <[email protected]>
- name: Check features | ||
run: cargo hack check --all --each-feature | ||
- name: Check all targets | ||
run: cargo check --all --all-targets --all-features |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to add the all-targets
or else it will miss benchmarks, do you think there might be a better solution @taiki-e?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'm not sure if there is another good solution. (afaik, --all-targets
is basically the same as --lib --bins --examples --tests --benches
, and note that the document is not checked (rust-lang/cargo#6669)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we run it last it should be fine I can wait till we fine a better solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Co-Authored-By: Taiki Endo <[email protected]>
@taiki-e thank you so much for this crate, its what I very much wanted but had no clue how to express what I wanted. <3 |
* chore: Add `cargo-hack` to check features Signed-off-by: Lucio Franco <[email protected]> * Update .github/workflows/CI.yml Co-Authored-By: Taiki Endo <[email protected]>
r? @taiki-e this crate is awesome :)
Signed-off-by: Lucio Franco [email protected]