Re: [PATCH 0/2] rust: kernel: add cfg_select! and use it for config-based selection
From: Miguel Ojeda
Date: Mon Jun 29 2026 - 05:45:15 EST
On Mon, Jun 29, 2026 at 11:38 AM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> For instance, instead of waiting for the MSRV bump, could we already
> use the upstream one since Rust 1.91.0? That means that we are already
> sure we are using the upstream one as-is.
By the way, this also applies for the docs -- we will eventually use
upstream's, and thus it is best to try to match the docs too.
It also means we probably want to put this into `std_vendor.rs` if we
are going to copy-paste the docs verbatim, even if it is not code as
such (no implementation upstream since it is a built-in).
E.g. for a similar case, please see:
https://lore.kernel.org/rust-for-linux/20260406095820.465994-2-ojeda@xxxxxxxxxx/
Cheers,
Miguel