jplatte / cargo-depgraph

Creates graphviz dependency graphs for Rust projects that use Cargo
GNU General Public License v3.0
151 stars 8 forks source link

Disambiguate multiple crates with the same name #3

Open jplatte opened 3 years ago

jplatte commented 3 years ago

At first, probably just adding a version to all crates of the same name, if there are multiple.

Later, crates could be disambiguated fully, adding even more info depending on what the crates (don't) differ in. E.g. a crate cr that is in the depgraph as a path dep once and a crates.io dep once, but both with the same version could be shown as cr [path = "../cr"] and cr [reg = "crates.io"] (leaving out the version).

jplatte commented 3 years ago

Full disambiguation is not done yet, but versions are shown for packages of ambiguous name since 70eb0d3.