cargo-deps icon indicating copy to clipboard operation
cargo-deps copied to clipboard

Handle optional dependencies properly

Open mrcnski opened this issue 4 years ago • 2 comments

Optional dependencies should not be treated as a "dependency" kind, of which there are only three -- regular, build, and dev. "Optional deps" should instead be handled as a boolean flag, which is what cargo does. A dependency can be both a build dependency and optional simultaneously, but currently cargo-deps will erase one of these.

Optional dependencies can be displayed with a dashed line.

mrcnski avatar Dec 01 '19 16:12 mrcnski

I'm working on this :)

jplatte avatar Jun 17 '20 00:06 jplatte

Awesome! Let me know if you get stuck.

mrcnski avatar Jun 17 '20 10:06 mrcnski