Re: [TECH TOPIC] Rust for Linux

Miguel Ojeda
2021-07-06T19:27:21Z

On Tue, Jul 6, 2021 at 9:05 PM Bart Van Assche <bvanassche@acm.org> wrote:
>
> Will the introduction of Rust drivers require that every maintainer of
> every subsystem used by Rust drivers maintains two versions of each
> header file that is used by Rust drivers - one version of each header
> file in C and another version of the same header file in Rust?

No, C bindings are automatically generated as needed.

What a maintainer would need to maintain, if they so wish, are Rust
"abstractions" of those C bindings. These are simply the Rust APIs
that are then used by other Rust modules to use (the "leaves"), and it
is what allows to maximize the amount of safe code in those Rust
modules.

Cheers,
Miguel