···99You will need to:
101011111. Have [rust-analyzer].:
1212-1312 - If you already use the [VS Code extension][ra-extension], no setup is required: the
1413 preprocessor automatically uses the server binary packaged with it.
1514 - Otherwise, [install][ra-install] rust-analyzer (e.g. via `rustup`) and make sure it
···2524 releases][gh-releases].
26252726 <!-- TODO: cargo binstall -->
2727+2828+{{#include ../snippets/mdbook-0.4.md}}
28292930## Configure
3031
···5252- [Supported syntax](supported-syntax.md): Full list of link syntax with examples. Know
5353 how to link to additional items such as
5454 [functions, macros](supported-syntax.md#functions-and-macros), and
5555- [implementors](supported-syntax.md#implementors-and-fully-qualified-syntax).
5555+ [implementors](supported-syntax.md#fully-qualified-paths).
56565757- [Name resolution](name-resolution.md): Understand how the preprocessor finds Rust
5858 items, including
+4-11
crates/mdbook-rustdoc-links/tests/env.rs
···24242525 info!("setup: compile self");
2626 Command::new("cargo")
2727- .args([
2828- "build",
2929- "--package",
3030- env!("CARGO_PKG_NAME"),
3131- "--all-features",
3232- "--bin",
3333- "mdbook-rustdoc-link",
3434- ])
2727+ .args(["build", "--package", env!("CARGO_PKG_NAME")])
3528 .arg(if cfg!(debug_assertions) {
3629 "--profile=dev"
3730 } else {
···5952 std::fs::File::options()
6053 .append(true)
6154 .open(root.path().join("book.toml"))?
6262- .pipe(|mut file| file.write_all("[preprocessor.rustdoc-link]\n".as_bytes()))?;
5555+ .pipe(|mut file| file.write_all("[preprocessor.rustdoc-links]\n".as_bytes()))?;
63566457 info!("when: book is not a Cargo project");
6558 info!("then: preprocessor fails");
···7063 .assert()
7164 .failure()
7265 .stderr(predicate::str::contains(
7373- "failed to determine the current Cargo project",
6666+ "Failed to determine the current Cargo project",
7467 ));
75687669 info!("given: book is a Cargo project");
···8275 .assert()
8376 .success();
84778585- if Command::new("mdbook-rustdoc-link")
7878+ if Command::new("mdbook-rustdoc-links")
8679 .arg("rust-analyzer")
8780 .env("PATH", &path)
8881 .current_dir(&root)