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

[Merged by Bors] - add check for unused dependencies #2461

Closed
wants to merge 2 commits into from

Conversation

mockersf
Copy link
Member

Objective

  • Unused dependencies are bad

Solution

@mockersf mockersf added A-Build-System Related to build systems or continuous integration dependencies labels Jul 13, 2021
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jul 13, 2021
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev

- name: Run cargo udeps
run: cargo udeps
Copy link
Member

Choose a reason for hiding this comment

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

From the last run of this job: To find dependencies that are not used by any target, enable '--all-targets'.
Since Bevy supports quite a few different targets, how about adding --all-targets here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Targets here means build targets (tests, examples, ...) not target triples. Using --all-targets would prevent detecting when regular dependencies could be dev-dependencies.

@cart cart added C-Dependencies A change to the crates that Bevy depends on and removed C-Dependencies-1 labels Jul 13, 2021
Copy link
Member

@cart cart left a comment

Choose a reason for hiding this comment

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

This is a wonderful addition 😄

@cart
Copy link
Member

cart commented Jul 16, 2021

bors r+

bors bot pushed a commit that referenced this pull request Jul 16, 2021
# Objective

- Unused dependencies are bad

## Solution

- Add check for unused dependencies with https://github.com/est31/cargo-udeps - #2455
@bors bors bot changed the title add check for unused dependencies [Merged by Bors] - add check for unused dependencies Jul 16, 2021
@bors bors bot closed this Jul 16, 2021
ostwilkens pushed a commit to ostwilkens/bevy that referenced this pull request Jul 27, 2021
# Objective

- Unused dependencies are bad

## Solution

- Add check for unused dependencies with https://github.com/est31/cargo-udeps - bevyengine#2455
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System Related to build systems or continuous integration C-Dependencies A change to the crates that Bevy depends on S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants