Re: The Case for Rust (in the base system)

From: <me_at_levitati.ng>
Date: Tue, 03 Sep 2024 13:33:44 UTC
It can, just pass the --emit=obj flag to rustc.

Rust also allows you to create functions with the C ABI.

On September 3, 2024 3:03:20 PM GMT+02:00, ske-89@pkmab.se wrote:
>With all this talk about Rust in the OS kernels, can someone
>explain to me why Rust can't simply produce object files that
>can be linked into the kernel like any C object file? (If you
>just avoid calling Rust-specific libraries, just like you don't
>call the C standard library either from within the kernel.)
>
>I haven't worked with Rust, and the introductions to Rust that
>I have read do not discuss this.
>
>/Kristoffer Eriksson
>