Skip to content

Commit 1f8cda6

Browse files
authored
Add a note about building rust-analyzer-proc-macro-srv (#1467)
1 parent 39612f9 commit 1f8cda6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/building/how-to-build-and-run.md

+9
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,15 @@ fall back to using `cargo` from the installed `nightly`, `beta`, or `stable` too
221221
`rustup install nightly` if you haven't already. See the
222222
[rustup documentation on custom toolchains](https://rust-lang.github.io/rustup/concepts/toolchains.html#custom-toolchains).
223223

224+
**Note:** rust-analyzer and IntelliJ Rust plugin use a component called
225+
`rust-analyzer-proc-macro-srv` to work with proc macros. If you intend to use a
226+
custom toolchain for a project (e.g. via `rustup override set stage1`) you may
227+
want to build this component:
228+
229+
```bash
230+
./x.py build proc-macro-srv-cli
231+
```
232+
224233
## Building targets for cross-compilation
225234

226235
To produce a compiler that can cross-compile for other targets,

0 commit comments

Comments
 (0)