Expand description
Documentation generation for bootstrap.
This module implements generation for all bits and pieces of documentation for the Rust project. This notably includes suites like the rust book, the nomicon, rust by example, standalone documentation, etc.
Everything here is basically just a shim around calling either rustbook or
rustdoc.
Macrosยง
Structsยง
- Bootstrap
- Build
Helper - Built
Docs - Output of a Doc step.
- Cargo
- Cargo
Book - Clippy
- Clippy
Book - Compiler
With Tools - Generate the combined compiler + tools docs for a given toolchain. This contains both the compiler docs, docs of rustc_private tools (miri, clippy, etc.), cargo and also some bootstrap related tools (bootstrap itself, compiletest, tidy, etc.).
- Compiletest
- DocArtifacts ๐
- Stores generated documentation artifacts.
- Edition
Guide - Embedded
Book - Error
Index - Miri
- Nomicon
- Reference
- Documents the reference. It has to always be done using a stage 1+ compiler, because it references in-tree compiler/stdlib concepts.
- Releases
- RunMake
Support - Rust
ByExample - Rustbook
Src ๐ - Rustc
- Document the compiler for the given
targetusing rustdoc frombuild_compiler. - Rustc
Book - Builds the Rust compiler book.
- Rustdoc
- Rustdoc
Book - Rustfmt
- Shared
Assets - Shared
Assets Paths - Standalone
- Std
- Document the standard library using
build_compiler. - Style
Guide - TheBook
- Tidy
- Unstable
Book - Unstable
Book Gen - Runs the
unstable-book-gentool and returns a path to the generate unstable book markdown files.
Enumsยง
Constantsยง
- STD_
PUBLIC_ ๐CRATES - Name of the crates that are visible to consumers of the standard library. Documentation for internal crates is handled by the rustc step, so internal crates will show up there.
Functionsยง
- create_
docs_ ๐and_ gather_ artifacts - Run
cargo docand gather generated documentation artifacts. - doc_std ๐
- Prepare a Cargo command for building the documentation for public standard library crates.
- invoke_
rustdoc ๐ - merge_
host_ ๐and_ target_ docs - Merge host and target documentation for a set of crates.
We pass
--targetwhen documenting, so Cargo will put the built documentation into two places: - merge_
rustdoc_ ๐cci - Run rustdoc to merge cross-crate info metadata (like the search index) from individual
executions of rustdoc into
out_dir. Thejson_filesparameter should contain paths to JSON file artifacts generated by previous executions ofcargo doc. - normalize_
doc_ ๐crate_ name - Normalizes crate name to get a name that is used to generate documentation on disk.
Turns
rustc-mainintorustc_main. - prepare_
doc_ compiler - Prepare a compiler that will be able to document something for
targetatstage.