Open flying-sheep opened 9 years ago
Parsing local modules probably wouldn't be too difficult, but parsing external modules (to include std
) would be much more difficult and require the source.
I'll play with some ideas and see what I can figure out.
Having the ability to graph just local module dependencies would help review designs a lot.
I like this idea. And as far as I'm concerned, graphing only local dependencies would actually be better than graphing global modules too. I actually wrote my own version of this tool, but it uses awk and sh, so it's far from perfect. In particular, it doesn't work at all with nested import groups.
Here's a newer crate than produces nice module graphs: https://github.com/regexident/cargo-modules
hi! i wanted to ask if module dependencies within a crate are out of scope or could be implemented.
surely a bigger thing as we’d have to parse rust…
the utility would be detecting dependency cycles and therefore get help with better module structure.