-
Notifications
You must be signed in to change notification settings - Fork 16
Filtering on dev-dependencies not working #4
Comments
Tested on Conrod. The dev dependencies are includes in the graph appear similar to normal dependencies. |
I wonder whether it should be any filtering in |
Seems that all are added as build dependencies https://github.com/kbknapp/cargo-graph/blob/master/src/project.rs#L111 |
I think that a simple for loop might not be enough to do the filtering.
I suggest the following:
|
The algorithm will "fill" the graph similar to a paint bucket algorithm, marking the dev-dependencies but overriding them as dependencies if they get are depended on by a normal dependency. |
Thanks for all the input! I'll start looking into this as well. Since I don't use many dev-deps it's difficult to test without picking crates I'm less familiar with. If you find the issue before me, put in a PR, I'm all about some contributors 👍 |
@bvssvni I think you're correct EDIT: closed by mistake |
cargo graph --dev-deps=false | dot -Tpng > Cargo.png
Also tried:
cargo graph --dev-color red | dot -Tpng > Cargo.png
The text was updated successfully, but these errors were encountered: