# Systemd Merges Support for Rust Programs

DevFeed: [Systemd Merges Support for Rust Programs](<https://devfeed.tech/articles/systemd-merges-support-for-rust-programs-100839.md>)

Original publisher: [Read original article](<https://linux.slashdot.org/story/26/10/25/2227243/systemd-merges-support-for-rust-programs>)

Author: EditorDavid

Published: 2026-10-26T00:08:00Z

Content type: news

Language: en

Sources: [Slashdot](<https://devfeed.tech/sources/slashdot.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [boot-process](<https://devfeed.tech/tags/boot-process.md>), [c](<https://devfeed.tech/tags/c.md>), [certificates](<https://devfeed.tech/tags/certificates.md>), [enablement](<https://devfeed.tech/tags/enablement.md>), [existing](<https://devfeed.tech/tags/existing.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [optional](<https://devfeed.tech/tags/optional.md>), [porting](<https://devfeed.tech/tags/porting.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [provisioning](<https://devfeed.tech/tags/provisioning.md>), [rust](<https://devfeed.tech/tags/rust.md>), [rust-programming](<https://devfeed.tech/tags/rust-programming.md>), [rust-programming-language](<https://devfeed.tech/tags/rust-programming-language.md>), [setup](<https://devfeed.tech/tags/setup.md>), [support](<https://devfeed.tech/tags/support.md>), [systemd](<https://devfeed.tech/tags/systemd.md>), [utility](<https://devfeed.tech/tags/utility.md>)

## AI overview

Systemd now supports writing leaf programs in Rust as an alternative to C, while core code such as the systemd library remains unsupported. Rust components are built with Meson without Cargo and require C linkage; support is optional via the -Drust= Meson option, which defaults to auto. Developers do not plan to port existing C code. A test program built in Rust was 32 KB versus 20 KB for its C counterpart. The excerpt also describes systemd-keyring-setup, a Rust utility for provisioning keyrings and enrolling X.509 certificates into kernel dm-verity, fs-verity, and BPF keyrings during boot; its code had not yet merged, though it was expected soon.

## Source excerpt

"As of today in systemd Git it's now possible for the systemd programs to be written in the Rust programming language as an alternative to C," reports Phoronix: Core systemd code like the systemd library doesn't yet support Rust code, but for the various systemd programs / leaf components there is now support for using Rust... The new systemd-keyring-setup utility in Rust is used for provisioning keyrings and enrolling X.509 certificates into the kernel's dm-verity / fs-verity / BPF keyrings during the boot process while dealing them afterward. This systemd-keyring-setup code hasn't been merged yet but is expected soon now that the Rust infrastructure has landed. Originally it was all part of a single big commit before being split-up for the Rust enablement, systemd-keyring-setup, and other preparations for this new component. Systemd developers aren't planning on porting existing C code to Rust, all the Rust code is built with Meson [no Cargo usage], and C linkage only is mandated. Systemd Rust components come out slightly larger than C with a test program being 32KB compared to 20KB for its C twin. For now at least the systemd Rust support is optional and toggled by the -Drust= Meson option with it being auto by default. Read more of this story at Slashdot.