From 5081c8d082abe230f51c1c9b26b44261564c4f80 Mon Sep 17 00:00:00 2001 From: Mat Wood Date: Fri, 20 Jan 2023 15:08:34 -0800 Subject: [PATCH] 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 --- .gitignore | 1 + README.md | 8 ++++++++ 2 files changed, 9 insertions(+) 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