Skip to content

chore(tools): Remove doc pass from cargo_check - #933

Merged
JeanMertz merged 1 commit into
mainfrom
tooling-build-times
Aug 3, 2026
Merged

chore(tools): Remove doc pass from cargo_check#933
JeanMertz merged 1 commit into
mainfrom
tooling-build-times

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

The cargo doc pass added in #900 dominates the cost of every check. Timing a one-line whitespace edit in jp_config with a warm cache: 163s and 190s on two runs with the pass enabled, against 16s and 18s with it disabled. rustdoc re-runs for the edited crate and everything downstream of it and has no incremental mode, so a change low in the dependency graph re-documents most of the workspace.

That is the wrong price for a signal only needed before work leaves the machine. cargo_check is called many times per session, and the doc lints stay covered by just docs-ci on CI and by manual checks locally.

Removes the docs option along with the pass, returning the tool config to its pre-#900 shape.

The `cargo doc` pass added in #900 dominates the cost of every check.
Timing a one-line whitespace edit in `jp_config` with a warm cache: 163s
and 190s on two runs with the pass enabled, against 16s and 18s with it
disabled. rustdoc re-runs for the edited crate and everything downstream
of it and has no incremental mode, so a change low in the dependency
graph re-documents most of the workspace.

That is the wrong price for a signal only needed before work leaves the
machine. `cargo_check` is called many times per session, and the doc
lints stay covered by `just docs-ci` on CI and by bacon's `doc` job
locally.

Removes the `docs` option along with the pass, returning the tool config
to its pre-#900 shape.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz
JeanMertz merged commit 1e11c02 into main Aug 3, 2026
16 checks passed
@JeanMertz
JeanMertz deleted the tooling-build-times branch August 3, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant