S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
2026-10-25 linux, open-source

systemd Merges Rust Support, but Only for New Code and Without Cargo

systemd merged support for programs written in Rust on October 24, and the most interesting thing about it is how tightly fenced it is. Rust may be used only for brand-new standalone utilities, existing C code stays untouched, and there is no Cargo anywhere in the build. If you run Ubuntu, Debian, Fedora, or Arch on your homelab machines, this is the init system you boot every day gaining a second language under strict supervision.

What actually merged

The change is pull request #44324, opened October 20 by Christian Brauner and merged into systemd's main branch, which puts it on the development road toward systemd 263. It was split out of a larger stack at the maintainers' request: the C certificate helpers in #44323 already merged, while the Rust wrapper library in #44325 and the first Rust program itself in #44114 are still open. It replaces an earlier RFC and follows ground rules the maintainers agreed at their Berlin hackfest.

Michael Larabel's report at Phoronix confirms the landing and the target: Rust is available for systemd programs and leaf components now, while core library code has unresolved blockers before it could follow. Bobby Borisov's rundown at Linuxiac and a detailed breakdown at Hardware Busters corroborate the same scope from independent angles.

The rules: leaves only, Meson only, almost no Rust standard library

Four constraints define what Rust in systemd is allowed to be:

Two engineering details show the care going in. A parity script checks that a Rust program prints the same --help, parses options the same way, and answers --introspect-cli byte for byte like its C twin. And secrets get their own treatment: they live in a Vec<u8, Erasing> type that wipes memory on free, turning a convention every C caller must remember into something the type system enforces.

What it costs and what it needs

The overhead is small but real. Per the pull request, a stripped test binary comes out at 32 KB with link-time optimization against 20 KB for its C equivalent, a comparison both Phoronix and Linuxiac repeat with the same caveat that it is only one small test program. Noise on a server, possibly worth a glance on a minimal initrd or embedded image.

Enabling it needs rustc 1.85 or newer, bindgen 0.71.1 or newer, and Meson 1.4.0 or newer, which the pull request notes is what Debian 13 ships. On older Meson the auto setting quietly switches itself off. Packagers take note: the pull request warns that Arch and openSUSE build-service builds currently fail because they build with all features enabled but do not pull in rustc and bindgen, so those builds need either -Drust=disabled or the new build dependencies.

The first customer: systemd-keyring-setup

The reason any of this exists yet is a single upcoming utility. systemd-keyring-setup provisions kernel keyrings at boot and enrolls X.509 certificates into the keyrings used by dm-verity, fs-verity, and BPF, then deals with them afterward. Its implementation is still unmerged in a separate pull request, but the infrastructure landing unblocks it, and it is expected to ship as part of systemd 263.

As Hardware Busters puts it, the no-external-crates rule is as much a supply-chain decision as a technical one: a boot-critical project the Linux world depends on does not want a dependency tree it does not control. That framing is their analysis rather than a maintainer statement, but it matches the shape of what merged.

What this means for your homelab

Nothing changes on your machines yet, and that is the honest headline. No distribution ships this code today, the first Rust utility has not merged, and Rust support is off wherever the toolchain is absent. When systemd 263 arrives, the practical questions will be whether your distribution builds with the Rust toolchain enabled and whether systemd-keyring-setup lands in a form that matters to Secure Boot and verified-boot setups.

The signal worth tracking is directional: the kernel has carried Rust drivers for a while, and now the init system that starts every systemd-based homelab host has a reviewed, deliberately narrow path for memory-safe new code. No action is needed. If you build systemd from source or maintain images, budget for the new optional toolchain dependency; everyone else can file this under the plumbing getting quietly better.

Comments (0)

No comments yet — start the thread.

Log in to comment.