On 11/4/2025 8:52 AM, Miguel Ojeda wrote: > On Tue, Nov 4, 2025 at 1:58 AM Joel Fernandes <[email protected]> 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; Thanks for the example! I will guard it accordingly in my next posting. - Joel
- Re: [PATCH RFC 1/4] rust: clist: Add abstractio... Joel Fernandes
- Re: [PATCH RFC 1/4] rust: clist: Add abstraction fo... Alexandre Courbot
- Re: [PATCH RFC 1/4] rust: clist: Add abstractio... Joel Fernandes
- Re: [PATCH RFC 1/4] rust: clist: Add abstra... Alexandre Courbot
- Re: [PATCH RFC 1/4] rust: clist: Add ab... Miguel Ojeda
- Re: [PATCH RFC 1/4] rust: clist: A... Guillaume Gomez
- Re: [PATCH RFC 1/4] rust: clis... Miguel Ojeda
- Re: [PATCH RFC 1/4] rust: clis... Miguel Ojeda
- Re: [PATCH RFC 1/4] rust: clis... Guillaume Gomez
- Re: [PATCH RFC 1/4] rust: clist: Add abstra... Miguel Ojeda
- Re: [PATCH RFC 1/4] rust: clist: Add ab... Joel Fernandes
- Re: [PATCH RFC 1/4] rust: clist: Add abstractio... Danilo Krummrich
- [PATCH RFC 3/4] rust: drm: Add DRM buddy allocator bindi... Joel Fernandes
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy alloca... Danilo Krummrich
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy al... Joel Fernandes
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy alloca... Alice Ryhl
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy al... Joel Fernandes
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy alloca... Alexandre Courbot
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy al... Joel Fernandes
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy alloca... Alexandre Courbot
- [PATCH RFC 4/4] samples: rust: Add sample demonstrating ... Joel Fernandes
