Conversation
Separate CCI parts JSON files into a dedicated `parts/` subdir. under the isolated output dir of each doc unit. The layout looks like: `<build-dir>/build/<pkg>-<hash>/out/parts/<crate>.json` This is a preparation of isolating per-crate doc HTML into a sibling `doc/` subdir.
Prepares for isolating per-crate rustdoc output, where the artifact doc directory may not yet exist on the first `cargo doc` invocation.
With `-Zrustdoc-mergeable-info`, each `rustdoc --merge=none` invocation now writes HTML to an isolated per-crate build directory instead of the shared `target/doc/`. At merge time, Cargo cleans the artifact doc dir, runs `--merge=finalize` to regenerate shared resources, then hardlinks per-crate HTML into `target/doc/`. This eliminates concurrent mutations to the shared artifact dir during parallel builds and enables future per-crate rebuild tracking.
This documents the current behavior
With `-Zrustdoc-mergeable-info`, per-crate rustdoc invocations only write to build dir. The exclusive artifact-dir lock is deferred to `merge_cross_crate_info()`. This allows concurrent `cargo doc` processes to run their per-crate rustdoc invocations in parallel and only serialize at the merge step.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.