-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Tracking issue for --unit-graph #8002
Copy link
Copy link
Open
Labels
A-json-outputArea: JSON message outputArea: JSON message outputC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.
Metadata
Metadata
Assignees
Labels
A-json-outputArea: JSON message outputArea: JSON message outputC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Unstable, baking
Implementation: #7977
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#unit-graph
Summary
The
--unit-graphflag emits a JSON structure showing Cargo's internal unit graph.Unresolved issues
cargo metadata(to get package names, for example). It seems a little silly to have to run two commands. Adding this tocargo metadataI think will be hard from a UX standpoint. It would require a superset of all flags of all commands (for example,cargo check --profile=testfundamentally changes things, so it would need to reproduce that flag). Every time I look at that, it seems really messy. There's also some flags like--targetthat don't interact withcargo metadatavery well.checkand acheckfor a test. The serialize implementation forCompileModedoes not output the different kinds. Not sure how this should be displayed.