The rustc-josh-sync Cronjob Bot ae9f97c299 Merge ref 'c5dabe8cf798' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: c5dabe8cf798123087d094f06417f5a767ca73e8
Filtered ref: 3214048a4d271548c85aae8ffc5f28ec73719235
Upstream diff: fb24b04b09...c5dabe8cf7

This merge was created using https://github.com/rust-lang/josh-sync.
2025-11-03 04:20:09 +00:00
..
2025-03-15 21:32:01 +01:00

rust-analyzer documentation

The rust analyzer manual uses mdbook.

Quick start

To run the documentation site locally:

cargo install mdbook
cargo install mdbook-toc
cargo xtask codegen
cd docs/book
mdbook serve
# make changes to documentation files in doc/book/src
# ...

mdbook will rebuild the documentation as changes are made.

Making updates

While not required, installing the mdbook binary can be helpful in order to see the changes. Start with the mdbook User Guide to familiarize yourself with the tool.

Generated documentation

Four sections are generated dynamically: assists, configuration, diagnostics and features. Their content is found in the generated.md files of the respective book section, for example src/configuration_generated.md, and are included in the book via mdbook's include functionality. Generated files can be rebuilt by running the various test cases that generate them, or by simply running all of the rust-analyzer tests with cargo test and cargo xtask codegen.