diff --git a/.gitignore b/.gitignore index 1de6a8d..ee6ae9b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ *.rmeta Module.symvers modules.order +rust-project.json diff --git a/README.md b/README.md index d85daf8..3f13da1 100644 --- a/README.md +++ b/README.md @@ -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 +``` \ No newline at end of file