Re: [PATCH RFC 1/4] rust: clist: Add abstraction for iterating over C linked lists

From: Miguel Ojeda

Date: Tue Nov 04 2025 - 08:54:35 EST


On Tue, Nov 4, 2025 at 1:58 AM Joel Fernandes <joelagnelf@xxxxxxxxxx> wrote:
>
> Perhaps wrapping it is #cfg is sufficient.

`cfg` attributes and the `cfg!` macro should work in doctests -- we
have already a few instances, e.g. this hidden one:

/// ```
/// # #![cfg(CONFIG_OF)]
/// use kernel::clk::Hertz;

Cheers,
Miguel