Building Rust-for-Linux on stable Rust
Building Rust-for-Linux on stable Rust
Posted Sep 25, 2024 7:06 UTC (Wed) by asahilina (subscriber, #166071)In reply to: Building Rust-for-Linux on stable Rust by milesrout
Parent article: Committing to Rust in the kernel
There is a backdoor in the stable compiler to enable nightly features. R4L uses this backdoor, and therefore works with stable Rust builds.
Since the features are still "nightly features" they can and do change, which can break the build with newer compiler versions, but the list keeps getting shorter and we try not to add any new required nightly features unless they are necessary or very important to achieve the R4L goals.
At some point all of the features will be promoted to stable, the backdoor will no longer be necessary, and R4L builds will be guaranteed not to break with newer compilers.