summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2025-02-10 21:04:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-22 22:54:27 +0300
commit0dfe4a7957a5b66bf22d93484406a54e12e5fd0f (patch)
tree70735d999a8f8fba9cf0970c6a436f974fcfa5ad /scripts/generate_rust_analyzer.py
parent4614939363bb23fa3c39a5ec79c8e0b61cc1dcda (diff)
downloadlinux-0dfe4a7957a5b66bf22d93484406a54e12e5fd0f.tar.xz
scripts: generate_rust_analyzer: add uapi crate
[ Upstream commit a1eb95d6b5f4cf5cc7b081e85e374d1dd98a213b ] Commit 4e1746656839 ("rust: uapi: Add UAPI crate") did not update rust-analyzer to include the new crate. Add the missing definition to improve the developer experience. Fixes: 4e1746656839 ("rust: uapi: Add UAPI crate") Signed-off-by: Tamir Duberstein <tamird@gmail.com> Tested-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20250210-rust-analyzer-bindings-include-v2-2-23dff845edc3@gmail.com [ Slightly reworded title. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
-rwxr-xr-xscripts/generate_rust_analyzer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py
index 2a64067b09b0..d1f5adbf33f9 100755
--- a/scripts/generate_rust_analyzer.py
+++ b/scripts/generate_rust_analyzer.py
@@ -110,7 +110,8 @@ def generate_crates(srctree, objtree, sysroot_src, external_src, cfgs):
}
append_crate_with_generated("bindings", ["core"])
- append_crate_with_generated("kernel", ["core", "macros", "build_error", "bindings"])
+ append_crate_with_generated("uapi", ["core"])
+ append_crate_with_generated("kernel", ["core", "macros", "build_error", "bindings", "uapi"])
def is_root_crate(build_file, target):
try: