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

enforce --no-default-features via cargo hack #9479

Closed
mattsse opened this issue Jul 12, 2024 · 4 comments
Closed

enforce --no-default-features via cargo hack #9479

mattsse opened this issue Jul 12, 2024 · 4 comments
Labels
C-enhancement New feature or request D-good-first-issue Nice and easy! A great choice to get started S-stale This issue/PR is stale and will close with no further activity

Comments

@mattsse
Copy link
Collaborator

mattsse commented Jul 12, 2024

Describe the feature

this will resurface again and again #9478

we should enforce this via cargo hack

- run: cargo hack check

TODO

  • add cargo hack step that does check --no-default-features

Additional context

No response

@mattsse mattsse added C-enhancement New feature or request S-needs-triage This issue needs to be labelled D-good-first-issue Nice and easy! A great choice to get started and removed S-needs-triage This issue needs to be labelled labels Jul 12, 2024
@diegoTech14
Copy link

Hello @mattsse,

I'm Diego Duarte from Costa Rica and I would like to help with this issue. I am a Web3 learner and I would like to learn about Rust.

Here is my OD profile.


Best regards,
Diego Duarte

Thanks for your consideration!

@rohankumar17
Copy link

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I am a second-year Software Engineering student with experience in programming languages such as Python, C, and C++. I have completed internships where I applied my skills in these languages. Recently, I have begun learning Rust and have engaged in practical exercises to enhance my proficiency. I am now seeking real-world issues and projects to work on that will motivate me to further develop my Rust skills and put my knowledge into practice.

How I plan on tackling this issue

To make sure the project builds successfully without relying on default features, I would tweak the CI workflow. I would begin updating the no-test-deps job to use the command cargo hack check --no-default-features. This command tells cargo hack to build the project while excluding any default features defined in the Cargo.toml. Additionally, I would update the lint-success job to include no-test-deps in its dependency list. This way, the overall CI will fail if the build without the default features doesn't pass. By making these changes, I can enforce stricter build requirements within the CI pipeline.

Copy link
Contributor

This issue is stale because it has been open for 21 days with no activity.

@github-actions github-actions bot added the S-stale This issue/PR is stale and will close with no further activity label Aug 12, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request D-good-first-issue Nice and easy! A great choice to get started S-stale This issue/PR is stale and will close with no further activity
Projects
Archived in project
Development

No branches or pull requests

3 participants