mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Rollup merge of #102807 - aDotInTheVoid:rdj-rustup-docs, r=jyn514
Document `rust-docs-json` component Follow up to #102241 r? ````@jyn514````
This commit is contained in:
commit
8c4191abca
@ -494,6 +494,16 @@ Note that the third item is the crate root, which in this case is undocumented.
|
|||||||
[JSON format](https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc_json_types/). `--output-format html` has no effect,
|
[JSON format](https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc_json_types/). `--output-format html` has no effect,
|
||||||
and is also accepted on stable toolchains.
|
and is also accepted on stable toolchains.
|
||||||
|
|
||||||
|
JSON Output for toolchain crates (`std`, `alloc`, `core`, `test`, and `proc_macro`)
|
||||||
|
is available via the `rust-docs-json` rustup component.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
rustup component add --toolchain nightly rust-docs-json
|
||||||
|
```
|
||||||
|
|
||||||
|
Then the json files will be present in the `share/doc/rust/json/` directory
|
||||||
|
of the rustup toolchain directory.
|
||||||
|
|
||||||
It can also be used with `--show-coverage`. Take a look at its
|
It can also be used with `--show-coverage`. Take a look at its
|
||||||
[documentation](#--show-coverage-calculate-the-percentage-of-items-with-documentation) for more
|
[documentation](#--show-coverage-calculate-the-percentage-of-items-with-documentation) for more
|
||||||
information.
|
information.
|
||||||
|
Loading…
Reference in New Issue
Block a user