systemd adds Rust support for individual components

systemd has merged Rust support, allowing individual components to be written in Rust alongside C. Christian Brauner and Lennart Poettering outlined the decision in a post on amutable.com. The approval covers individual binaries; Rust is not currently permitted in the fundamental libsystemd-shared.so shared library.
The authors say using Rust in shared libraries requires first-class support tied to the longstanding stable ABI problem. Without it, shared libraries and many binaries would contain duplicated Rust code. They consider static linking impractical for systemd, which currently comprises more than 180 binaries. Shared code will therefore stay in C, with Rust crates wrapping that functionality to give Rust binaries access to the same core APIs.
Components written in either language must handle options, display help and report errors consistently. Rust code will use the existing Meson build system rather than Cargo. The project is not accepting external crate dependencies for now and does not use Rust’s standard library. It also provides its own allocator crate to make memory handling consistent across the codebase.
Rust remains optional, with builds without it retaining functionality and support. Established, reliable C components will not be rewritten without a good reason. The authors also noted that the Rust community quickly reverted a change in Rust 1.100 that would have broken systemd’s newly merged Rust support.
Original source: amutable.com ↗
Comments on source platforms
Rank is the maximum of the latest discussion counts. These are source metrics.
Hacker News
- Discussion ↗: 5
Measured: 11 Nov 2026, 19:25 UTC