Skip to content

'cargo build --color always' should enable colors for rustc too #2877

Closed
@bennofs

Description

@bennofs

Currently, if you run cargo --color always build, it'll only enable colors for the output of cargo itself, but not for any errors produced by rustc. To get colors from both cargo build and rustc, you have to use the following complex command:

$ cargo rustc --color always -- --color always 2>&1

I think cargo should forward the --color argument to rustc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions