Building Rust-for-Linux on stable Rust
Building Rust-for-Linux on stable Rust
Posted Sep 24, 2024 20:25 UTC (Tue) by cesarb (subscriber, #6266)In reply to: Building Rust-for-Linux on stable Rust by sam_c
Parent article: Committing to Rust in the kernel
The issue is that Rust developers are very conservative about new language features; unlike GCC (and clang which copied the behavior from GCC) which always allows the use of language extensions, on Rust all these language features (which would be extensions in GCC) are considered experimental, and only enabled when using the pre-release "nightly" version of the compiler. This allows them to iterate on the feature's design, without having to worry about projects outside the compiler and its standard library depending on them.
> and the kernel always has fallbacks for older GCC and Clang where they're not available.
It doesn't; the kernel uses several non-standard GCC extensions with no fallback, and requires a version of GCC or clang which is recent enough to provide all these required extensions.