Re: [PATCH 4/7] gpu: nova-core: export Rust symbols for dependent modules

From: Miguel Ojeda

Date: Fri May 01 2026 - 06:25:13 EST


On Thu, Apr 30, 2026 at 5:22 PM Joel Fernandes <joelagnelf@xxxxxxxxxx> wrote:
>
> How does the rust compiler know that this function can be called externally if
> it resolves to no callers within the translation unit?

Like Alex mentions, that information is what the `.rmeta` files
contain, which are generated by the compiler and consumed by the
compiler later on.

They contain stuff like generics that you point out, in order to
actually use them later on, as well as many other things.

In a way, you can think of them as opaque, generated "C headers" with
all the information needed to build later crates. Other languages take
similar approaches.

Cheers,
Miguel