rust: fix rust-analyzer configuration for generated files
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-531e9dacec8dVersions newest first
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | scripts: generate_rust_analyzer.py: add missing include_dirsscripts/ | +20 | 4 replies | |
| 2/2 | scripts: generate_rust_analyzer.py: add uapi cratescripts/ | +2 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Andreas Hindborg |
|---|---|
| Series | T-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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]>