The Linux Kernel Prepares For Rust 1.77 Upgrade

Written by Michael Larabel in Programming on 18 February 2024 at 06:34 AM EST. Add A Comment
PROGRAMMING
With Linux 6.8 the kernel's Rust code was brought up to Rust 1.75 while new patches posted this weekend port the code over to Rust 1.76 and then the upcoming Rust 1.77.

Posted on Saturday was this patch series taking the kernel's Rust infrastructure up to Rust 1.76 compatibility. That was immediately followed by the Rust 1.77 patch for that yet to be released as stable toolchain. With Rust 1.77 they have now stabilized the single-field "offset_of" feature used by the kernel's Rust code. Rust 1.77 also adds a "--check-cfg" option that the Rust kernel code will likely transition to in the future.

Rust for Linux logo


This follows the Rust for Linux policy of tracking the upstream Rust version upgrades until there is a minimum version that can be declared where all used features are considered stable. At that unknown point in the future, the minimum version will be declared as noted in their version policy.

This upgrading to Rust 1.77 will likely take place for the upcoming Linux 6.9 kernel merge window.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week