| From: |
| Tamir Duberstein <tamird-AT-kernel.org> |
| To: |
| Jesung Yang <y.j3ms.n-AT-gmail.com>, Miguel Ojeda <ojeda-AT-kernel.org>, Boqun Feng <boqun.feng-AT-gmail.com>, Gary Guo <gary-AT-garyguo.net>, Björn Roy Baron <bjorn3_gh-AT-protonmail.com>, Benno Lossin <lossin-AT-kernel.org>, Andreas Hindborg <a.hindborg-AT-kernel.org>, Alice Ryhl <aliceryhl-AT-google.com>, Trevor Gross <tmgross-AT-umich.edu>, Danilo Krummrich <dakr-AT-kernel.org> |
| Subject: |
| [PATCH 0/4] scripts: generate_rust_analyzer.py: tidy and add type hints |
| Date: |
| Thu, 22 Jan 2026 12:30:44 -0500 |
| Message-ID: |
| <20260122-rust-analyzer-types-v1-0-29cc2e91dcd5@kernel.org> |
| Cc: |
| rust-for-linux-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, Tamir Duberstein <tamird-AT-kernel.org>, Daniel Almeida <daniel.almeida-AT-collabora.com>, Fiona Behrens <me-AT-kloenk.dev> |
| Archive-link: |
| Article |
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-v... [0]
Signed-off-by: Tamir Duberstein <tamird@kernel.org>
---
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@kernel.org>