Skip to content

List all crates that will be built by cargo build in JSON #16717

@yshui

Description

@yshui

Problem

IIUC cargo metadata doesn't do feature unification, and can't tell you which crates will actually be built. cargo tree -e normal,build does do that, but it cannot output JSON.

practically parsing the output of cargo tree isn't that bad, but it would be nice if it can output JSON.

has been raised before: sfackler/cargo-tree#21

Proposed Solution

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-metadataS-triageStatus: This issue is waiting on initial triage.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions