fishfolk / jumpy

Tactical 2D shooter in fishy pixels style. Made with Rust-lang 🦀 and Bevy 🪶
https://fishfolk.org/games/jumpy/
Other
1.66k stars 122 forks source link

Prune Dependencies Where Possible #792

Open zicklag opened 1 year ago

zicklag commented 1 year ago

We're currently running at ~581 dependencies for a build of Jumpy on Linux, which is quite a lot.

Lots of it is unavoidable, but we also have several duplicate dependencies detected by cargo deny check ban, which we might be able to eliminate.

We should try to prune our dependency tree as much as we can without causing adverse side-effects, just to keep things tidy as possible, and to reduce clean compile times, which can sometimes be off-putting to new contributors, and at the very least, add lead-in time when first jumping into jumpy development :wink:.

orhun commented 1 year ago

Hey, have you tried running cargo-udeps?

zicklag commented 1 year ago

Good idea, I hadn't run it recently. I just tried it now and it says all dependencies appear to be used.

zicklag commented 1 year ago

Ah, cargo machete found some "unused" deps, though. They were technically used somewhere in our dependency tree, but not directly used by the crate itself.

So it didn't help remove dependencies per-se, but it did find entries that we could harmlessly remove from our Cargo.toml.

orhun commented 1 year ago

wow, TIL cargo-machete