Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module graphs? #11

Open
flying-sheep opened this Issue Nov 14, 2015 · 4 comments

Comments

Projects
None yet
4 participants
@flying-sheep
Copy link

flying-sheep commented Nov 14, 2015

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.

@kbknapp

This comment has been minimized.

Copy link
Owner

kbknapp commented Nov 15, 2015

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.

@nixpulvis

This comment has been minimized.

Copy link

nixpulvis commented Apr 22, 2016

Having the ability to graph just local module dependencies would help review designs a lot.

@asomers

This comment has been minimized.

Copy link

asomers commented Jun 15, 2018

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.

@asomers

This comment has been minimized.

Copy link

asomers commented Jun 16, 2018

Here's a newer crate than produces nice module graphs: https://github.com/regexident/cargo-modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.