Pugio: A command-line dependency binary size graph visualisation tool
github.com·23h·
Discuss: r/rust
Flag this post

Pugio is a graph visualisation tool for Rust to estimate and present the binary size contributions of a crate and its dependencies. It uses cargo-tree and cargo-bloat to build the dependency graph where the diameter of each crate node is logarithmic to its size. The resulting graph can then be either exported with graphviz and opened as an SVG file, or as a DOT graph file for additional processing.

I have developed this project out of frustration when trying to reduce the binary sizes by removing unnecessary dependencies and their features. cargo-bloat by itself is a great tool but lacks the dependency information, such as how deeply depended a particular crate i...

Similar Posts

Loading similar posts...