Skip to content

Cargo script should only output messages from the script for no-change builds #16388

@Timmmm

Description

@Timmmm

Problem

With cargo script, if nothing has changed in your script so nothing needs to be rebuilt, then you shouldn't see any noise from Cargo; only output from the script itself.

Currently you always see Finished and Running lines like this:

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s
     Running `/home/tim/.cargo/build/f2/c9ee52a23ab051/target/debug/test`
Hello, world!

Proposed Solution

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-console-outputArea: Terminal output, colors, progress bar, etc.C-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.Z-scriptNightly: cargo script

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions