Merge pull request #4 from thepacketgeek/generate-rust-project

Adding section about rust-analyzer in README
This commit is contained in:
Miguel Ojeda
2023-01-24 20:59:12 +01:00
committed by GitHub
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
```