Skip to content

Commit a1eb95d

Browse files
tamirdojeda
authored andcommitted
scripts: generate_rust_analyzer: add uapi crate
Commit 4e17466 ("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: 4e17466 ("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>
1 parent d1f9280 commit a1eb95d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/generate_rust_analyzer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def append_crate_with_generated(
117117
}
118118

119119
append_crate_with_generated("bindings", ["core"])
120-
append_crate_with_generated("kernel", ["core", "macros", "build_error", "bindings"])
120+
append_crate_with_generated("uapi", ["core"])
121+
append_crate_with_generated("kernel", ["core", "macros", "build_error", "bindings", "uapi"])
121122

122123
def is_root_crate(build_file, target):
123124
try:

0 commit comments

Comments
 (0)