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
- [PATCH RFC 0/4] rust: Introduce support for C linked lis... Joel Fernandes
- [PATCH RFC 1/4] rust: clist: Add abstraction for it... Joel Fernandes
- Re: [PATCH RFC 1/4] rust: clist: Add abstractio... Danilo Krummrich
- Re: [PATCH RFC 1/4] rust: clist: Add abstra... Joel Fernandes
- Re: [PATCH RFC 1/4] rust: clist: Add abstractio... Alexandre Courbot
- Re: [PATCH RFC 1/4] rust: clist: Add abstra... Joel Fernandes
- Re: [PATCH RFC 1/4] rust: clist: Add ab... Alexandre Courbot
- Re: [PATCH RFC 1/4] rust: clist: Add ab... Miguel Ojeda
- Re: [PATCH RFC 1/4] rust: clist: A... Joel Fernandes
- Re: [PATCH RFC 1/4] rust: clist: Add abstra... Danilo Krummrich
- [PATCH RFC 4/4] samples: rust: Add sample demonstra... Joel Fernandes
- Re: [PATCH RFC 4/4] samples: rust: Add sample d... Danilo Krummrich
- Re: [PATCH RFC 4/4] samples: rust: Add sample d... Matthew Auld
- Re: [PATCH RFC 4/4] samples: rust: Add sample d... Alexandre Courbot
- [PATCH RFC 3/4] rust: drm: Add DRM buddy allocator ... Joel Fernandes
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy al... Danilo Krummrich
- Re: [PATCH RFC 3/4] rust: drm: Add DRM budd... Joel Fernandes
- Re: [PATCH RFC 3/4] rust: drm: Add DRM buddy al... Alice Ryhl
- Re: [PATCH RFC 3/4] rust: drm: Add DRM budd... Joel Fernandes
