Re: [PATCH] rust: macros: add if_cfg! macro for config-based conditionals

From: Miguel Ojeda

Date: Tue Jan 20 2026 - 14:49:50 EST


On Tue, Jan 20, 2026 at 5:28 PM Christopher Erleigh
<christopher.erleigh@xxxxxxxxx> wrote:
>
> From f0458e293b9fc50b39f1be5c604bb12c3c691704 Mon Sep 17 00:00:00 2001
> From: KaiserGranatapfel <christopher.erleigh@xxxxxxxxx>
> Date: Tue, 20 Jan 2026 17:09:59 +0100
> Subject: [PATCH] rust: macros: add if_cfg! macro for config-based conditionals

I don't think this reached the mailing list, since it has HTML inside.

Also, these headers are not supposed to be here, but used for the actual email.

I would recommend using `git send-email` and/or `b4` for sending the
patch -- they make it easy. In particular, `b4` has a web submission
endpoint that can send them for you if e.g. Gmail gives you trouble
setting it up:

https://b4.docs.kernel.org/en/latest/contributor/send.html

Cheers,
Miguel