r/linux • • Dec 10 '25

Kernel "Rust in the kernel is no longer experimental — it is now a core part of the kernel and is here to stay."

https://lwn.net/Articles/1049831/
1.5k Upvotes

353 comments sorted by

View all comments

Show parent comments

24

u/Tusen_Takk Dec 10 '25

Is this not a large push towards the rust developers to make that not the case with great haste?

27

u/DHermit Dec 10 '25

It's dependent on LLVM. And there are projects for non-LLVM based building, but they obviously are huge undertakings.

32

u/tesfabpel Dec 10 '25

There are also efforts like gccrs and rustc_codegen_gcc (in the same GitHub organization as Rust).

The first is a frontend for GCC and replaces rustc.

The second is an alternative backend for rustc that uses libgccjit to use GCC as the underlying compiler, instead of LLVM (or cranelift). This IMHO is the best way forward but gccrs has also its reason to exist.

22

u/adnanclyde Dec 10 '25

With the prospect of Rust becoming a part of the Linux kernel's future, I can imagine a lot more resources getting poured in the alternatives. Whether it's a gcc based compatible compiler, or adding more targets supported into Cranelift.

13

u/DHermit Dec 10 '25 edited Dec 10 '25

That could be, but on the other hand, the targets where Rust isn't available aren't all that popular.

Edit: is -> isn't

9

u/Lower-Limit3695 Dec 10 '25 edited Dec 10 '25

Rust is available for:

  • x86

  • x86_64

  • arm

  • aarch64

  • riscv32

  • riscv64

  • mips

  • mips64 -powerpc

  • powerpc64

  • nvptx

  • wasm32

  • loongarch32

  • loongarch64

  • s390x

I would not say that the targets where Rust is available aren't all that popular. (Many of these are very popular).

I'd say that issue is that Rust doesn't support the same breadth of architectures as gcc

16

u/NighthawkFoo Dec 10 '25

That’s because gcc supports EVERYTHING, even architectures that have been long abandoned by their manufacturers.

7

u/DHermit Dec 10 '25

My bad, made a typo

1

u/cp5184 Dec 12 '25

Seems like this is putting the cart before the horse then...