Stabilizing json compiler message output

I’ve just submitted a PR to RustyCode which adds support for JSON errors. I think the format is in a very usable place right now. I haven’t found any cases where it choked up or emitted unexpected results.

I’m not currently using the rendered field as it seemed to be a little hit and miss, so calling the current stage v1 would be totally reasonable in my opinion.

The big issue I’m seeing right now is as you already mentioned; the single RUSTFLAGS route which causes rebuilds when you aren’t running cargo from the IDE and expect human readable output. Although, this can be remedied if Cargo can take care of this for us ;).

Is there a Cargo issue already?

@matklad

I talked to @alexcrichton about this the other day. Once json becomes stable and out from under the unstable flags, cargo can add support for it. He can chime in with details, but it seemed like it would largely be able to “just work” after support is added.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.