Re: [PATCH] scripts: generate_rust_analyzer.py: add missing macros -> core dep
From: Miguel Ojeda
Date: Sun Feb 09 2025 - 12:01:56 EST
On Sun, Feb 9, 2025 at 5:39 PM Tamir Duberstein <tamird@xxxxxxxxx> wrote:
>
> You're right to point out the difference between `kernel::core`
> (module) and `core` (crate). This confusion is solved below (because
> it doesn't actually depend on the `core` crate).
By the way, I didn't read this sentence carefully before: I was not
talking about "`kernel::core` (module)" -- not sure what you mean by
that.
I am talking about the `core` crate in both cases. One is the one we
build for the kernel, and the other is the host one which is used by
proc macros.
The difference may not matter, but one is built differently than the
other, including the `cfg` set differences (and at least the `cfg` set
is used by rust-analyzer).
Moreover, I think it does depend on the `core` crate, at least
indirectly, since `std` depends on `core`.
Cheers,
Miguel