systemd Merges Rust Infrastructure, Limited to New Leaf Components Without Cargo
systemd, the Linux startup and service manager, has merged Rust support into its Git repository through PR #44324, which adds about 5,100 lines across 54 files. The rules agreed by maintainers restrict Rust to new leaf components, with no plans to port existing C code. The build continues to use Meson rather than Cargo, no external crates are included, and code runs under no_std with only C linkage permitted. The design also avoids Rust's standard allocator in favor of a custom one that returns errors instead of aborting, and it adds type-based erasure of sensitive data. A first practical Rust program is still awaiting merge, while distributions such as Arch and openSUSE must decide whether to add build dependencies or disable Rust support.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in