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] - Remove unused deps #2455

Closed
wants to merge 4 commits into from

Conversation

bjorn3
Copy link
Contributor

@bjorn3 bjorn3 commented Jul 12, 2021

Objective

Reduce compilation time

Solution

Remove unused dependencies. While this PR doesn't remove any crates from Cargo.lock, it may unlock more build parallelism.

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Jul 12, 2021
@alice-i-cecile alice-i-cecile added C-Code-Quality A section of code that is hard to understand or change and removed S-Needs-Triage This issue needs to be labelled labels Jul 12, 2021
@NathanSWard
Copy link
Contributor

Is there any Github action we can add to make sure we don't have unused dependencies?

@bjorn3
Copy link
Contributor Author

bjorn3 commented Jul 13, 2021

cargo udeps is a useful command for this.

@bjorn3
Copy link
Contributor Author

bjorn3 commented Jul 13, 2021

The duplicate dependency skip list needs to be updated it seems. proc-macro-crate is now duplicated.

@mockersf
Copy link
Member

mockersf commented Jul 13, 2021

yup #2456

but dependencies jobs are not checked for a merge so it's not a blocker

@mockersf mockersf 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
@cart cart added C-Dependencies A change to the crates that Bevy depends on and removed C-Dependencies-1 labels Jul 13, 2021
@bjorn3
Copy link
Contributor Author

bjorn3 commented Jul 14, 2021

Rebased to re-trigger CI.

@mockersf
Copy link
Member

bors r+

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

Reduce compilation time

# Solution

Remove unused dependencies. While this PR doesn't remove any crates from `Cargo.lock`, it may unlock more build parallelism.
@bors
Copy link
Contributor

bors bot commented Jul 14, 2021

Build failed:

@mockersf
Copy link
Member

bors r+

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

Reduce compilation time

# Solution

Remove unused dependencies. While this PR doesn't remove any crates from `Cargo.lock`, it may unlock more build parallelism.
@bors bors bot changed the title Remove unused deps [Merged by Bors] - Remove unused deps Jul 14, 2021
@bors bors bot closed this Jul 14, 2021
@bjorn3 bjorn3 deleted the remove_unused_deps branch July 15, 2021 06:14
bors bot pushed a commit that referenced this pull request Jul 15, 2021
This was tested using cargo generate-lockfile -Zminimal-versions.
The following indirect dependencies also have minimal version
dependencies. For at least num, rustc-serialize and rand this is
necessary to compile on rustc versions that are not older than 1.0.

* num = "0.1.27"
* rustc-serialize = "0.3.20"
* termcolor = "1.0.4"
* libudev-sys = "0.1.1"
* rand = "0.3.14"
* ab_glyph = "0.2.7

Based on #2455
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
ostwilkens pushed a commit to ostwilkens/bevy that referenced this pull request Jul 27, 2021
# Objective

Reduce compilation time

# Solution

Remove unused dependencies. While this PR doesn't remove any crates from `Cargo.lock`, it may unlock more build parallelism.
ostwilkens pushed a commit to ostwilkens/bevy that referenced this pull request Jul 27, 2021
This was tested using cargo generate-lockfile -Zminimal-versions.
The following indirect dependencies also have minimal version
dependencies. For at least num, rustc-serialize and rand this is
necessary to compile on rustc versions that are not older than 1.0.

* num = "0.1.27"
* rustc-serialize = "0.3.20"
* termcolor = "1.0.4"
* libudev-sys = "0.1.1"
* rand = "0.3.14"
* ab_glyph = "0.2.7

Based on bevyengine#2455
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
dekirisu pushed a commit to dekirisu/bevy_gltf_trait that referenced this pull request Jul 7, 2024
This was tested using cargo generate-lockfile -Zminimal-versions.
The following indirect dependencies also have minimal version
dependencies. For at least num, rustc-serialize and rand this is
necessary to compile on rustc versions that are not older than 1.0.

* num = "0.1.27"
* rustc-serialize = "0.3.20"
* termcolor = "1.0.4"
* libudev-sys = "0.1.1"
* rand = "0.3.14"
* ab_glyph = "0.2.7

Based on bevyengine/bevy#2455
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Code-Quality A section of code that is hard to understand or change 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.

5 participants