[PATCH v2 0/2] rust: reduce duplicate information

Tamir Duberstein posted 2 patches 2 weeks, 3 days ago
There is a newer version of this series
rust/Makefile                     | 32 +++++++++++++++++++++++---------
scripts/generate_rust_analyzer.py | 13 +++++--------
2 files changed, 28 insertions(+), 17 deletions(-)
[PATCH v2 0/2] rust: reduce duplicate information
Posted by Tamir Duberstein 2 weeks, 3 days ago
This series reuses `rust/Makefile`'s knowledge of `pin_init` and
`pin_init_internal`'s `cfg`s in `scripts/generate_rust_analzyer.py` and
reduces the ceremony needed to use that knowledge in the script.

Signed-off-by: Tamir Duberstein <tamird@kernel.org>
---
Changes in v2:
- Split into two patches. (Miguel Ojeda)
- CC kbuild. (Miguel Ojeda)
- Link to v1: https://patch.msgid.link/20260116-rust-analyzer-pin-init-duplication-v1-1-5e85c5824a02@kernel.org

---
Tamir Duberstein (2):
      rust: kbuild: extract configs for reuse
      scripts: generate_rust_analyzer.py: reduce cfg plumbing

 rust/Makefile                     | 32 +++++++++++++++++++++++---------
 scripts/generate_rust_analyzer.py | 13 +++++--------
 2 files changed, 28 insertions(+), 17 deletions(-)
---
base-commit: 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
change-id: 20260116-rust-analyzer-pin-init-duplication-a22d05221771

Best regards,
--  
Tamir Duberstein <tamird@kernel.org>
Re: [PATCH v2 0/2] rust: reduce duplicate information
Posted by Benno Lossin 2 weeks, 3 days ago
On Tue Jan 20, 2026 at 5:10 PM CET, Tamir Duberstein wrote:
> This series reuses `rust/Makefile`'s knowledge of `pin_init` and
> `pin_init_internal`'s `cfg`s in `scripts/generate_rust_analzyer.py` and
> reduces the ceremony needed to use that knowledge in the script.

This is a cool idea, I don't maintain the makefile code, so this doesn't
mean much, but it's on my radar :)

Acked-by: Benno Lossin <lossin@kernel.org>

Cheers,
Benno

> Signed-off-by: Tamir Duberstein <tamird@kernel.org>
> ---
> Changes in v2:
> - Split into two patches. (Miguel Ojeda)
> - CC kbuild. (Miguel Ojeda)
> - Link to v1: https://patch.msgid.link/20260116-rust-analyzer-pin-init-duplication-v1-1-5e85c5824a02@kernel.org
>
> ---
> Tamir Duberstein (2):
>       rust: kbuild: extract configs for reuse
>       scripts: generate_rust_analyzer.py: reduce cfg plumbing
>
>  rust/Makefile                     | 32 +++++++++++++++++++++++---------
>  scripts/generate_rust_analyzer.py | 13 +++++--------
>  2 files changed, 28 insertions(+), 17 deletions(-)
> ---
> base-commit: 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
> change-id: 20260116-rust-analyzer-pin-init-duplication-a22d05221771
>
> Best regards,
> --  
> Tamir Duberstein <tamird@kernel.org>