[PATCH 0/3] rust: add missing macros deps as host crates

From: Tamir Duberstein
Date: Sun Feb 09 2025 - 16:05:11 EST


This is an alternative of (or follow-up to) a similar patch based on
rust-fixes:

https://lore.kernel.org/all/20250209-rust-analyzer-macros-core-dep-v2-1-897338344d16@xxxxxxxxx/

This one contains a larger refactor that allows host crates to be
declared separately from target crates as discussed in v1 of the above:

https://lore.kernel.org/all/20250209-rust-analyzer-macros-core-dep-v1-1-5ebeb3eb60a9@xxxxxxxxx/

In my testing rust-analyzer seems fine with multiple crates with the
same display_name. Crates are identified by their index.

Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx>
---
Tamir Duberstein (3):
scripts: generate_rust_analyzer.py: add type hints
scripts: generate_rust_analyzer.py: identify crates explicitly
scripts: generate_rust_analyzer.py: add missing macros deps

scripts/generate_rust_analyzer.py | 143 ++++++++++++++++++++++++++------------
1 file changed, 97 insertions(+), 46 deletions(-)
---
base-commit: beeb78d46249cab8b2b8359a2ce8fa5376b5ad2d
change-id: 20250209-rust-analyzer-host-43b108655578

Best regards,
--
Tamir Duberstein <tamird@xxxxxxxxx>