Rust version policy
Supported versions
The kernel documents the minimal requirements to compile it. Since v6.11, the kernel supports a minimum version of Rust. The initial minimum was Rust 1.78.0, and the next one will be Rust 1.85.0 (expected in Linux v7.1)1, following Debian 13 (Trixie)'s Rust toolchain version — please see "Minimum upgrade policy" below for details.
For the moment, we cannot guarantee newer Rust versions will always work due to the unstable features in use2. In practice, so far, it has worked with every version released since the initial minimum. Nevertheless, removing the need for the unstable features is a priority of the project.
To ameliorate that, the kernel is now being build-tested in Rust's pre-merge CI. That is, every change that is attempting to land into the Rust compiler is tested against the kernel, and it is merged only if it passes. Similarly, the bindgen tool is also build-testing the kernel in their pre-merge CI.
Thus, with the pre-merge CIs in place, those projects hope to avoid unintentional changes to Rust and bindgen that break the kernel. This means that, apart from intentional changes on their side (that we work around conditionally on our side as needed), the upcoming Rust and bindgen versions should generally work. This applies to beta and nightly versions of Rust as well.
In addition, getting Linux to build on stable Rust was a "flagship goal" of the Rust project for 2024H2 and 2025H1. We also had two goals for 2025H2 (language and compiler) and, currently, an ongoing 2026 roadmap (and the individual project goals linked there, e.g. compiler features).
Stable/LTS kernels may have different requirements. For instance, Linux 6.18.y has a minimum of Rust 1.78.0 at the time of writing.
To clarify, the Rust language is stable, i.e. it promises backwards compatibility, except for those unstable features.
Supported toolchains
The Rust versions currently supported should already be enough for kernel developers in recent distributions, such as:
- Arch Linux.
- Debian 13 (Trixie), Debian Testing and Debian Unstable (Sid).
- Fedora Linux.
- Gentoo Linux.
- Nix.
- openSUSE Slowroll and openSUSE Tumbleweed.
- Ubuntu 25.10 and 26.04 LTS. In addition, 24.04 LTS using versioned packages.
In addition, we support the toolchains distributed by Rust, installed via rustup or the standalone installers.
Finally, slim and fast LLVM+Rust toolchains are provided at kernel.org.
Please see the Quick Start guide for details.
Minimum upgrade policy
Since early 2026, our current policy is to follow Debian Stable's Rust version as the minimum supported version.
For instance, Debian 13 (Trixie)'s Rust version is 1.85.0 at the time of writing. Thus, some months after Debian's release (to give time for developers to upgrade), it will become the Rust minimum (expected in Linux v7.1).