Rust Patches For The Linux Kernel Updated A Fifth Time With New Features

Written by Michael Larabel in Programming on 17 March 2022 at 02:38 PM EDT. 46 Comments
PROGRAMMING
Miguel Ojeda who has been leading the Rust programming language support for the Linux kernel today posted his fifth spin of this patch series providing the optional Rust integration for the Linux kernel that includes example driver code.

The Rust for Linux kernel code hasn't yet been mainlined but is certainly moving in that direction to allow Rust as a second supported language for the Linux kernel contributions. At least for now, that Rust code will continue to be optional / won't be mandatory for building the Linux kernel though with time may pick up compelling features or drivers that will make it more of a functional requirement.


With the v5 patches there has been more infrastructure improvements and continuing to refine the integration and sample Rust code for the kernel. Some of the Rust for Linux v5 changes include:

- The toolchain and alloc are upgraded against Rust 1.59.

- Added support for host programs written in Rust.

- A new "HAVE_RUST" kernel option that is to be set by architectures supporting Rust.

- The Rust for Linux kernel abstractions have added a new abstraction interface for covering the kernel's Hardware Random Number Generator (HWRNG).

- New traits and types added, among other changes for improving the Rust's Linux kernel integration and abstractions.

More details on this round of Rust for Linux changes via the kernel mailing list. With the excitement building around Rust for the Linux kernel hopefully it will make it mainline this calendar year.
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