-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Conversation
Is there any Github action we can add to make sure we don't have unused dependencies? |
|
The duplicate dependency skip list needs to be updated it seems. proc-macro-crate is now duplicated. |
yup #2456 but dependencies jobs are not checked for a merge so it's not a blocker |
e6968c5
to
27eb8ba
Compare
Rebased to re-trigger CI. |
bors r+ |
# 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.
Build failed: |
bors r+ |
# 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.
Pull request successfully merged into main. Build succeeded: |
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
# Objective - Unused dependencies are bad ## Solution - Add check for unused dependencies with https://github.com/est31/cargo-udeps - #2455
# 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.
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
# Objective - Unused dependencies are bad ## Solution - Add check for unused dependencies with https://github.com/est31/cargo-udeps - bevyengine#2455
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
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.