Skip to content

Add harness field to cargo metadata output #11846

Description

@jordanisaacs

Problem

For third party rust compilation tools, we would like to follow the behavior of cargo. This requires using cargo metadata and its respective crate for parsing Cargo.toml files. However, the harness value is missing from the metadata output. Thus cannot follow the correct behavior for things like [[bench]] which tend to use harness = false resulting in --test. See here.

Proposed Solution

Simple add a harness value to the cargo metadata output.

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-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

    Type

    No type

    Fields

    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