Uh oh!
There was an error while loading. Please reload this page.
Distribute json doc - #101799
Conversation
rust-highfive
commented
Sep 14, 2022
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jyn514 (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
GuillaumeGomez
commented
Sep 14, 2022
aDotInTheVoid
commented
Sep 14, 2022
@rustbot modify labels: +A-rustdoc-json |
jyn514
left a comment
There was a problem hiding this comment.
Thanks! This looks roughly right, but I think we can simplify it quite a bit.
Once you've made the change that builds the JSON docs whenever the normal docs are built, I can run @bors try to generate the rust-json-docs component and verify that it has the output you expect. You can also run x dist rust-json-docs locally and look at the tarball in build/dist.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jyn514
commented
Sep 14, 2022
@rustbot author |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
LukeMathWalker
commented
Sep 15, 2022
@rustbot label -S-waiting-on-author +S-waiting-on-review |
This comment has been minimized.
This comment has been minimized.
jyn514
left a comment
There was a problem hiding this comment.
This looks in a lot better shape, thanks :) just a few small comments.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
this looks extremely suspicious, but it was already here before so no need to fix it here.
There was a problem hiding this comment.
Yeah, this felt broken to me as well - especially considering that we have a vector of request crates but we abort as soon as one of those is built (instead of making sure that all of them are built).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jyn514
commented
Sep 15, 2022
r=me with that last comment addressed and the commits squashed :) thanks for sticking with this! |
37d0444 to
ccd4383CompareLukeMathWalker
commented
Sep 16, 2022
r? @jyn514 |
LukeMathWalker
commented
Sep 16, 2022
Thank you for guiding me through it @jyn514! |
jyn514
commented
Sep 16, 2022
@bors r+ |
bors
commented
Sep 16, 2022
LukeMathWalker
commented
Sep 17, 2022
I've added a check before attempting the deletion (alternatively I can add |
jyn514
commented
Sep 17, 2022
I noticed that after this change we'll print documenting std twice. Can you fix that while you're at it? |
…ed documentation for std crates in nightly toolchains. We also add a new flag to `x doc`, `--json`, to render the JSON-formatted version alongside the HTML-formatted one.
e244549 to
235dcceCompareLukeMathWalker
commented
Sep 17, 2022
Fixed it! @jyn514 |
jyn514
commented
Sep 17, 2022
@bors r+ |
bors
commented
Sep 17, 2022
bors
commented
Sep 18, 2022
⌛ Testing commit 235dcce with merge 8b5ebc275c2ef02347a6a6c1496ea49b411259bd... |
bors
commented
Sep 18, 2022
💔 Test failed - checks-actions |
rust-log-analyzer
commented
Sep 18, 2022
jyn514
commented
Sep 18, 2022
@bors retry |
bors
commented
Sep 19, 2022
bors
commented
Sep 19, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Sep 19, 2022
Finished benchmarking commit (c8e12cc): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Footnotes |
Overview
We add a new component,
rust-json-docs, to distribute the JSON version of rustdoc's output for public compiler crates (i.e.std,alloc,proc_macro,coreandtest).As discussed in #101383, we do not bundle this up as part of the existing
rust-docscomponent sincerustdoc's JSON format is still unstable.Open questions / Doubts
I tried my best, but I never touched this codebase and I couldn't find much documentation on how
distworks - I pattern-matched existing code, which might have led to some non-sensical choices in the eyes of people more familiar with the codebase. In particular, I am not sure if my choice of adding a new config flag is appropriate or if the decision to build/not build the JSON docs is more appropriately gated by one of the existing flags.Any suggestion is more than welcome.
Closes#101383