New crate announcement - cargo-hackerman: if your code takes too long to compile, hackerman can help
If your code takes ages to compile you can take several steps:
- Check if there are any dependencies present more than once in different versions.
cargo hackerman dupeswill do that for you. - If a dependency is present more than once - you might want to know what exactly requires more than one copy,
cargo hackerman explainwill do just that by plotting a visual tree with xdot/graphvis with transitive dependencies de-duplicated (can be disabled with-T) and features expanded (can be disabled with-P). - It also might be interesting to see what exactly it means to have a dependency on a crate.
cargo hackerman treewill display its sub-dependencies as a nice visual tree. cargo hackerman showcan be useful to get dependency'sCargo.tomlfile, the documentation or upstream repository.- And lastly
hackermancan generate and update a workspace hack, quite efficient at that: just usecargo hackerman hackand enjoy your redundant recompilation going away. Plus some other tools to restore the original dependencies and manage merge requests if you decide to commit hacked files into your checkout.