Skip to content

rust: fix rust-analyzer configuration for generated files

Tamir Duberstein lkml rust-for-linux 2 versions Applied

Status from this message: Applied to `rust-fixes` -- thanks everyone!

Get series with b4
b4 am 20250210-rust-analyzer-bindings-include-v2-0-23dff845edc3@gmail.com change-id 20250210-rust-analyzer-bindings-include-531e9dacec8d

Versions newest first

  1. v2 Latest2 patches 7 repliesApplied
  2. v12 patches 3 repliesApplied

Changes in v2 from the cover letter

- Add missing core dependency on uapi. Fixes navigation in
rust/kernel/ioctl.rs.
- Link to v1: https://lore.kernel.org/r/20250210-rust-analyzer-bindings-include-v1-0-6cbf420e95b6@gmail.com

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2scripts: generate_rust_analyzer.py: add missing include_dirsscripts/generate_rust_analyzer.py+20 -204 replies
2/2scripts: generate_rust_analyzer.py: add uapi cratescripts/generate_rust_analyzer.py+2 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchAndreas Hindborg
SeriesT-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] rust: fix rust-analyzer configuration for generated files

The individual patches should be descriptive on their own. They are included in a single series because the second patch uses a function introduced in the first.

I've confirmed this allows me to navigate to symbols defined in generated files as well as to the generated files themselves. I am using an out-of-source build.

---
Changes in v2:
- Add missing core dependency on uapi. Fixes navigation in
rust/kernel/ioctl.rs.
- Link to v1: https://lore.kernel.org/r/20250210-rust-analyzer-bindings-include-v1-0-6cbf420e95b6@gmail.com

---
Tamir Duberstein (2):
scripts: generate_rust_analyzer.py: add missing include_dirs
scripts: generate_rust_analyzer.py: add uapi crate

 scripts/generate_rust_analyzer.py | 41 ++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 20 deletions(-)

---
base-commit: a64dcfb451e254085a7daee5fe51bf22959d52d3
change-id: 20250210-rust-analyzer-bindings-include-531e9dacec8d

Best regards,

Signature · 1 line
Tamir Duberstein <[email protected]>