UK — The Register
Systemd adds support for Rust
Software1 min read
Systemd, the system that starts and manages Linux services, is adding support for the Rust programming language. The change is in early work for version 263, and it only covers new parts, not a rewrite.
What happened
Developer Christian Brauner announced that a new feature for systemd has been merged. The earlier large change, pull request #44144, was split into five smaller parts. The key part adds support programs written in Rust. Developers can now write new systemd modules in Rust.
Key facts
Some key terms
Systemd is the first program that starts when a Linux computer boots. It then runs and manages other services. Rust is a programming language known for safe code. Meson is a build system, a tool that turns source code into a working program. Cargo is Rust's own package manager and build tool. The article says systemd will not use Cargo.
Why it matters
This is a step toward using Rust in one of Linux's most important core tools. But the limits are strict. Existing C code is not being ported, and nothing other parts depend on is written in Rust. Rust code also must not use the standard library. Brauner said the team would have liked Rust in the core of systemd, but Rust's support for dynamic libraries is not ready yet.
What to watch
- Whether systemd 263 is released with these Rust parts.
- Whether more new systemd modules are written in Rust.
- Whether Rust gets better support for dynamic libraries, which could allow Rust in systemd's core later.
Glossary
- systemd
- A program that starts first on Linux and manages other services and programs.
- Rust
- A programming language designed to write safe and fast code.
- Meson
- A build system that tells the computer how to turn source code into a program.
- Cargo
- The package manager and build tool for Rust code.
- bindgen
- A tool that creates Rust code to connect with C code.