@@ -307,6 +307,31 @@ terminal.</li>
307
307
<a href =" ../reference/config.html " >config value</a >.</dd >
308
308
309
309
310
+
311
+ <dt class =" option-term " id =" option-cargo-install---message-format " ><a class =" option-anchor " href =" #option-cargo-install---message-format " ></a ><code >--message-format</code > <em >fmt</em ></dt >
312
+ <dd class =" option-desc " >The output format for diagnostic messages. Can be specified multiple times
313
+ and consists of comma-separated values. Valid values:</p >
314
+ <ul >
315
+ <li ><code >human</code > (default): Display in a human-readable text format. Conflicts with
316
+ <code >short</code > and <code >json</code >.</li >
317
+ <li ><code >short</code >: Emit shorter, human-readable text messages. Conflicts with <code >human</code >
318
+ and <code >json</code >.</li >
319
+ <li ><code >json</code >: Emit JSON messages to stdout. See
320
+ <a href =" ../reference/external-tools.html#json-messages " >the reference</a >
321
+ for more details. Conflicts with <code >human</code > and <code >short</code >.</li >
322
+ <li ><code >json-diagnostic-short</code >: Ensure the <code >rendered</code > field of JSON messages contains
323
+ the " ; short" ; rendering from rustc. Cannot be used with <code >human</code > or <code >short</code >.</li >
324
+ <li ><code >json-diagnostic-rendered-ansi</code >: Ensure the <code >rendered</code > field of JSON messages
325
+ contains embedded ANSI color codes for respecting rustc's default color
326
+ scheme. Cannot be used with <code >human</code > or <code >short</code >.</li >
327
+ <li ><code >json-render-diagnostics</code >: Instruct Cargo to not include rustc diagnostics in
328
+ in JSON messages printed, but instead Cargo itself should render the
329
+ JSON diagnostics coming from rustc. Cargo's own JSON diagnostics and others
330
+ coming from rustc are still emitted. Cannot be used with <code >human</code > or <code >short</code >.</li >
331
+ </ul ></dd >
332
+
333
+
334
+
310
335
</dl >
311
336
312
337
### Common Options
0 commit comments