Adding section about rust-analyzer in README

- Including an example of how to create a rust-analyzer `rust-project.json` config
- Adding `rust-project.json` to `.gitignore`

Signed-off-by: Matthew Wood <mat@thepacketgeek.com>
This commit is contained in:
Mat Wood 2023-01-20 15:08:34 -08:00
parent 427f696b5d
commit 5081c8d082
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@
*.rmeta
Module.symvers
modules.order
rust-project.json

View File

@ -34,3 +34,11 @@ make[1]: Leaving directory '.../linux-with-rust-support'
For details about the Rust support, see https://github.com/Rust-for-Linux/linux.
For details about out-of-tree modules, see https://www.kernel.org/doc/html/latest/kbuild/modules.html.
## rust-analyzer
Rust for Linux supports building a `rust-project.json` configuration for [`rust-analyzer`](https://rust-analyzer.github.io/), including for out-of-tree modules:
```sh
make -C .../linux-with-rust-support M=`pwd` rust-analyzer
```