Re: [PATCH 0/4] scripts: generate_rust_analyzer.py: tidy and add type hints
From: Jesung Yang
Date: Wed Jan 28 2026 - 01:06:49 EST
On Fri Jan 23, 2026 at 2:30 AM KST, Tamir Duberstein wrote:
> This series adds type annotations to generate_rust_analyzer.py. It is a
> subset of an earlier series[0] with formatting-only and drive-by patches
> removed (I sent some of these as separate single-patch series).
>
> The final commit leverages type hints to tidy the implementation. It
> could be done separately from this series, but serves as a nice
> demonstration.
>
> Link: https://lore.kernel.org/all/20250424-rust-analyzer-host-v6-0-40e67fe5c38a@xxxxxxxxx/ [0]
>
> Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxxx>
Great work, thanks! For the entire series,
Reviewed-by: Jesung Yang <y.j3ms.n@xxxxxxxxx>
Tested-by: Jesung Yang <y.j3ms.n@xxxxxxxxx>
Best regards,
Jesung
> ---
> Tamir Duberstein (4):
> scripts: generate_rust_analyzer.py: extract `{build,register}_crate`
> scripts: generate_rust_analyzer.py: drop `"is_proc_macro": false`
> scripts: generate_rust_analyzer.py: add type hints
> scripts: generate_rust_analyzer.py: identify crates explicitly
>
> scripts/generate_rust_analyzer.py | 256 ++++++++++++++++++++++++++++----------
> 1 file changed, 191 insertions(+), 65 deletions(-)
> ---
> base-commit: 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
> change-id: 20260122-rust-analyzer-types-f90bda766749
>
> Best regards,
> --
> Tamir Duberstein <tamird@xxxxxxxxxx>