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

.cargo: check all features in custom-clippy #2771

Merged
merged 3 commits into from
Jul 28, 2022

Conversation

elenaf9
Copy link
Contributor

@elenaf9 elenaf9 commented Jul 24, 2022

Description

Our custom-clippy currently just runs clippy with the default features. The result of this is that a) not all packages are checked, and b) all features in those packages are disabled. This caused issues like #2770 and #2737.
Extended it now to check all features.

Depends on:

@elenaf9
Copy link
Contributor Author

elenaf9 commented Jul 25, 2022

As an aside: while reading through the cargo book i stumbled across the following note on rust workspaces: https://doc.rust-lang.org/cargo/reference/workspaces.html#the-workspace-section

All path dependencies residing in the workspace directory automatically become members.

Apart from some of the packages in /misc, I think all of our [workspace] members that we currently explicitly list are already path dependencies. I don't really have a strong opinion in this, but theoretically we could remove them from the members list, which makes it one place less to worry about when adding a new package. Wdyt @thomaseizinger @mxinden? Are there any other packages in our workspace that are not path dependencies?

@thomaseizinger
Copy link
Contributor

Interesting, I didn't know that. Happy to remove them from the members list then :)

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

🙏 Thanks for investigating.

@mxinden
Copy link
Member

mxinden commented Jul 27, 2022

@elenaf9 would you mind addressing the remaining clippy failures?

@elenaf9
Copy link
Contributor Author

elenaf9 commented Jul 27, 2022

@elenaf9 would you mind addressing the remaining clippy failures?

@mxinden #2772 🙂

@mxinden
Copy link
Member

mxinden commented Jul 28, 2022

Oh, sorry for missing #2772 @elenaf9.

@mxinden mxinden merged commit eaf3f3a into libp2p:master Jul 28, 2022
@elenaf9 elenaf9 deleted the clippy-all-features branch July 28, 2022 07:35
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.

3 participants