bnjbvr opened PR #3490 from remove-unused-cranelift-deps
to main
:
An attempt at using a new tool I made that removes spurious dependencies in Cargo.toml in a very naive fashion. Seems that I could still compile with
cargo test --all
locally with these changes, let's see what CI thinks.One package is actually removed from the Cargo.lock file, which is surprising. Usually, the spurious dependencies exist because these are former dependencies of the package, but that have moved elsewhere. Removing these dependencies can sometimes help reorder the crate compilation graph, and slightly reduce overall build times on machines with multiple cores.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Did this and the
rand
dep removal in https://github.com/bytecodealliance/wasmtime/pull/3478 (approved, but not yet merged) too.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Is cranelift-serde still declared as dependency of a crate inside the workspace with this change? If not, running
cargo build -p cranelift-serde
orcd cranelift/serde; cargo build
will fail.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Nice!
bjorn3 edited PR review comment.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
(Sorry @bjorn3, didn't see you open #3478 before)
No problem. There are improvements in this PR I missed in my PR.
bnjbvr submitted PR review.
bnjbvr created PR review comment:
Ah right, that explains why it was removed, thanks! And indeed I can reproduce the error now. Would it make sense to manually add it to the workspace entries from the top-level
Cargo.toml
then, instead of marking it as an unused dependency?
bjorn3 submitted PR review.
bjorn3 created PR review comment:
I guess so.
bnjbvr updated PR #3490 from remove-unused-cranelift-deps
to main
.
bnjbvr updated PR #3490 from remove-unused-cranelift-deps
to main
.
Last updated: Dec 23 2024 at 12:05 UTC