]> git.proxmox.com Git - cargo.git/commit - src/doc/src/commands/cargo-doc.md
Auto merge of #10245 - joshtriplett:stabilize-timings, r=joshtriplett
authorbors <bors@rust-lang.org>
Sat, 5 Feb 2022 04:45:49 +0000 (04:45 +0000)
committerbors <bors@rust-lang.org>
Sat, 5 Feb 2022 04:45:49 +0000 (04:45 +0000)
commit3bc0e6d83f7f5da0161ce445f8864b0b639776a9
tree22d584174cd4c53e3079640a21575425fa012408
parent07e9d46e3d1d33e3342aa578b12887b8991c798b
parent85589e1a8c121ef4febfdc5713484ba6516a16d4
Auto merge of #10245 - joshtriplett:stabilize-timings, r=joshtriplett

Stabilize `-Ztimings` as `--timings`

The `-Ztimings` option has existed for years, and many people use it to
profile and optimize their builds. It's one of the common reasons people
use nightly cargo.

The machine-readable JSON output may warrant further careful inspection
before we commit to a stable format. However, for the human-readable
output we don't need to make any commitment about the exact output.

Add a `--timings` option, as the stable equivalent to `-Ztimings`.
(Passing `html` or `json` requires `-Zunstable-options`, but the default `--timings` does not.)

Document the new option, and update the testsuite.