Skip to content

cargo … --message-format json should tell you when it starts compiling a cate. #12864

@bend-n

Description

@bend-n

Problem

cargo build --message-format json will have output such as:

// stdout: (none)
// stderr:
Compiling png
// stdout:
{"reason":"compiler-artifact","package-id":"png 0.17.0"} // compilation finishes

There is no way to see when png starts compiling.
The only way to find out, is to parse stderr, which also doesnt give you the full version information + manifest + etc

Proposed Solution

cargo build --message-format json will have output such as:

{"reason":"begin-compile-crate","package_id":"png 0.17.0","target":"","features":[],"executable":null,"profile":""}
{"reason":"compiler-artifact","package-id":"png 0.17.0"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-json-outputArea: JSON message outputC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions