Skip to content

Cargo output could go to stderr #1473

@huonw

Description

@huonw

Currently output generated by cargo itself goes to stdout, while rustcs goes to stderr. This is pretty annoying for a command cargo run, where the user controls stdout and may not appreciate the contamination from cargo, e.g. cargo run --bin foo > some_file.txt will include the Compiling ... and Running ... lines.

Alteratively, I suppose we could support cargo run --output some_file.txt --bin foo which will do the redirect internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyExperience: Easy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions