Systemd Merges Support for Rust Programs
"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…
Systemd now supports the Rust programming language, according to a recent report. While core systemd code remains in C, various systemd programs and leaf components can now be written in Rust. The systemd-keyring-setup utility, used for provisioning keyrings and handling X.509 certificates during the boot process, is an example of Rust code in systemd.
This Rust infrastructure has been integrated into systemd, though existing C code will not be ported to Rust. Systemd developers are not planning to convert all C code to Rust; rather, all Rust code will be linked to C. The Rust components are slightly larger than their C counterparts, with a test program being 32KB compared to 20KB for its C equivalent.
Rust support for systemd is currently optional, activated by the -Drust= Meson option, and enabled by default.
Written by urgent.news from Slashdot's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.
- systemd Merges Support For Rust Programs phoronix.com