Skip to content
Back

systemd adds support for leaf components written in Rust

systemd has added support for leaf components written in Rust, without porting existing code. Rust will be used only in new leaf components with no dependents, and the core stays in C because of dynamic library limitations in Rust.

By Wendelmaques Pereira · Updated today

Source: systemd adiciona suporte a componentes escritos em Rust (lwn.net). Text prepared with AI from this source.

What happened and what to do

Christian Brauner, of the systemd project, announced that the service manager now accepts leaf components written in Rust. The change does not port existing code to the language: Rust will be used only for new leaf components, and nothing other components depend on will be written in Rust. According to the announcement, the project would like to extend Rust support to the core, but obstacles in Rust's support for dynamic libraries would greatly increase the size of each compiled binary. If the schedule holds, the work should appear in version v263, expected in December.

In practice, a company that maintains Linux systems running systemd can treat this as a signal to plan for C and Rust code coexisting. Before adopting new Rust components, it is useful to map which internal services are independent leaves, define build and test pipelines for the new language, and review packaging and dependency update practices. Monitoring systemd release versions and recording when new components reach production is also worthwhile.

How the consultancy can help

Wendelmaques can diagnose your Linux infrastructure and the services running under systemd, identifying which components are candidates for Rust rewrites or extensions. We then design and implement build, testing and monitoring pipelines that support both C and Rust code, in your own environment.

Next step

If your team needs to plan Rust adoption in system components, send a short description of your environment and goals. We will reply with a scoped proposal for diagnosis and implementation.

Let's assess your project

Wendelmaques Pereira

I reply with scope and a proposal.

WhatsApp

Looking for something else?Frequently asked questionsGuidesContact