rust-analyzer/docs/book
A4-Tacks e8ee597340
Add config hide placeholders type hints
In the inferred type hints, expand the line too long. add config to disable it.

Example
---
```json
{"rust-analyzer.inlayHints.typeHints.hideInferredTypes": true}
```

```rust
use std::collections::HashMap;
fn foo(iter: Vec<Result<HashMap<String, String>, std::io::Error>>) {
    let output = iter.into_iter().collect::<Result<Vec<_>, _>>().unwrap();
}
```

**Before this PR**

```rust
let output: Vec<HashMap<String, String>> = iter.into_iter().collect::<Result<Vec<_ = HashMap<String, String>>, _ = Error>>().unwrap();
```

**After this PR**

```rust
let output: Vec<HashMap<String, String>> = iter.into_iter().collect::<Result<Vec<_>, _>>().unwrap();
```
2025-12-05 02:09:59 +08:00
..
src Add config hide placeholders type hints 2025-12-05 02:09:59 +08:00
book.toml Remove mdbook-toc usage 2025-12-01 14:27:20 +00:00
README.md Remove mdbook-toc usage 2025-12-01 14:27:20 +00:00

rust-analyzer documentation

The rust analyzer manual uses mdbook.

Quick start

To run the documentation site locally:

cargo install mdbook
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.