Skip to content

Commit 3488c23

Browse files
committed
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`
1 parent 427f696 commit 3488c23

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
*.rmeta
99
Module.symvers
1010
modules.order
11+
rust-project.json

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@ make[1]: Leaving directory '.../linux-with-rust-support'
3434
For details about the Rust support, see https://github.com/Rust-for-Linux/linux.
3535

3636
For details about out-of-tree modules, see https://www.kernel.org/doc/html/latest/kbuild/modules.html.
37+
38+
## rust-analyzer
39+
40+
Rust-for-Linux supports building a `rust-project.json` configuration for [`rust-analyzer`](https://rust-analyzer.github.io/), including for out-of-tree modules:
41+
42+
```sh
43+
make -C .../linux-with-rust-support M=`pwd` rust-analyzer
44+
```

0 commit comments

Comments
 (0)