cargo: Add support for `--error-format` now that it has been stablized

It would be great if Cargo could add support for --error-format now that it has been stabilized and merged into rust-master.

This would be a big win for IDEs as we could move away from using RUSTFLAGS.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 5
  • Comments: 16 (15 by maintainers)

Commits related to this issue

Most upvoted comments

ah, streaming, yeah, I’d been thinking about that for the compiler too. It is a pain.It seems solvable in the long term though (and necessary).

Yeah, I’d assume JSON errors would disable colours in any case - it’s not meant to be user-readable.

Note that Cargo would have a very difficult time capturing the output of the compiler and then adding its own json. It could, but it wouldn’t be an easy thing to do.