Skip to content

Expose machine_message.rs as a crate so that it's easy for third party tools #8142

@richardwhiuk

Description

@richardwhiuk

Describe the problem you are trying to solve

Currently https://doc.rust-lang.org/cargo/reference/external-tools.html#json-messages nicely describes the messages which Cargo can output.

However, there's no programmatic definition, so integrations are forced to copy and paste structs out of Cargo's code to parse them.

Describe the solution you'd like

It'd be nice if there was a rust crate which a) Cargo used to define these messages and b) third party developers could pull and use serde::Deserialise to parse them.

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`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions