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

chore: Add cargo-hack to check features #105

Merged
merged 2 commits into from
Oct 31, 2019
Merged

Conversation

LucioFranco
Copy link
Member

r? @taiki-e this crate is awesome :)

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
Copy link
Member Author

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?

Copy link
Contributor

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)

Copy link
Member Author

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.

.github/workflows/CI.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

❤️

@LucioFranco
Copy link
Member Author

@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

@LucioFranco LucioFranco merged commit 108bad0 into master Oct 31, 2019
@LucioFranco LucioFranco deleted the lucio/add-cargo-hack branch October 31, 2019 16:19
rabbitinspace pushed a commit to satelit-project/tonic that referenced this pull request Jan 1, 2020
* 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]>
brentalanmiller pushed a commit to brentalanmiller/tonic that referenced this pull request Oct 6, 2023
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