Skip to content

Commit

Permalink
scripts: generate_rust_analyzer: add uapi crate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tamir Duberstein authored and Miguel Ojeda committed Mar 11, 2025
1 parent d1f9280 commit a1eb95d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/generate_rust_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def append_crate_with_generated(
}

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:
Expand Down

0 comments on commit a1eb95d

Please sign in to comment.