Re: [PATCH v2 1/2] scripts: generate_rust_analyzer: add versioning infrastructure
From: Jesung Yang
Date: Sat Jan 10 2026 - 20:22:09 EST
On Sat, Jan 10, 2026 at 8:08 AM Tamir Duberstein <tamird@xxxxxxxxx> wrote:
>
> I think we can get all the information we need about the compiler
> without shelling out to RA here. In KConfig we already have options
> like
>
> config RUSTC_HAS_COERCE_POINTEE
> def_bool RUSTC_VERSION >= 108400
>
> and those configs all flow through scripts/generate_rust_analyzer.py.
> Could we add one to indicate the new version of RA, and then drive the
> logic from it?
This could be an option, but I'm hesitant to use Kconfig soley for
tooling enhancements which don't affect the kernel binary. I'd like to
get a bit more input on whether this approach aligns with how we want
to use Kconfig.
Best regards,
Jesung