Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC 3662: Mergeable rustdoc cross-crate info #3699

Merged
merged 29 commits into from
Sep 21, 2024

Conversation

camelid
Copy link
Member

@camelid camelid commented Sep 21, 2024

See #3662 for the actual RFC, by @EtomicBomb. This PR is just for merging purposes.

Rendered

EtomicBomb and others added 29 commits June 19, 2024 02:52
fixed broken buck2 link, address notriddle's comment about trait vs type
impls, adds period at ends of sentence that are missing periods, and
adds clarification about the usefulness of extern-html-root-url
* Rename --merge=none|read-write|write-only to --merge=none|shared|finalize
* --write-info-json=target/doc.parts/my-crate/crate-info.json -> --parts-out-dir=target/doc.parts/my-crate
* --include-info-json=target/doc.parts/my-crate/crate-info.json -> --include-parts-dir=target/doc.parts/my-crate
* Clarify the three modes / workflows in the text of the RFC
I moved the section discussing --extern-html-root-url from unresolved
questions to the Reference-level explanation, as there have been no
proposals discussing alternatives.

I removed the section about no_emit_shared in unresolved questions,
because it has not come up in discussion and no_emit_shared was never a
command line option anyway. The names proposed in discussion are better
and more declarative suggestions
* Explain default behavior of rustdoc in Reference-level explanation
* Flag summary in Guide-level explanation
* Say that crate-info.json is stable because build systems need to rely
  on it
* t,s,i -> trait-crate, struct-crate, index-crate
* T, S -> Trait, Struct
* Remove the --include-rendered-docs flag
* --parts-out-dir restricted to --merge=none
* --include-parts-dir restricted to --merge=finalize
* crate-info.json -> crate-info to emphasize opaqueness
* doc.parts contents edition stability promises are
  replaced with a statement saying that
  rustdoc will make an reasonable effort to continue
  just having crate-info files
* New directory: `doc.parts/<crate-name>/crate-info` -> New directory: `doc.parts`.
* Number of times `--parts-out-dir`, `--merge`, and `--include-parts-dir` can be provided are mentioned.
* Describe why `doc.parts` is a directory.
* Description of multiple parallel invocations of rustdoc.
* Describe why to run rustc before rustdoc.
* Fix typos.
* remove 'Unresolved: index crate?' from the unresolved questions section
* remove the requirement on the index crate from various sections
typo in --merge=finalize description: can links
* full sentences in intro
* Clarify Cargo's expected use of `--merge=none|shared|finalize`
* Explain why you would use multiple rustdoc invocations with the same --out-dir
  and merge=none
* Remove justification for why rustdoc output can be unstable in general
* Permalink specific fuchsia commit
Change sentence reading "The WIP may change the sorting order..." to "The implementation may change the sorting order..."

Co-authored-by: Noah Lev <camelidcamel@gmail.com>
@camelid camelid merged commit 1812478 into rust-lang:master Sep 21, 2024
@camelid camelid deleted the EtomicBomb/master branch September 21, 2024 21:54
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.

2 participants