Re: [PATCH 0/2] rust: usb: add initial USB abstractions

From: Miguel Ojeda

Date: Tue Sep 23 2025 - 08:55:43 EST


On Tue, Sep 23, 2025 at 2:34 PM Daniel Almeida
<daniel.almeida@xxxxxxxxxxxxx> wrote:
>
> Hmm, but the USB module is gated by #[cfg(CONFIG_USB) in lib.rs, so not having
> CONFIG_USB enabled should not return any errors and instead skip the USB
> bindings completely.
>
> I wonder if this has to be CONFIG_USB=y?

Yes, the `kernel` crate is built-in and it is trying to call something
from a module.

Cheers,
Miguel