86 - systemd Opens the Door to Rust.
Rust keeps moving into the layers most people never look at. systemd now accepts new components written in Rust, Cloudflare and VoidZero are porting the TypeScript compiler to it, and Astral rewrote the tar parser behind uv. Underneath it all, the Rust compiler is having a big year of its own. The plumbing is changing, and it is changing to Rust.
Featured sponsor
|
systemd Now Accepts New Components Written in Rust
With security vulnerabilities being reported at an ever-growing pace, moving more and more of Linux to Rust is a good path to be on. systemd sits at the core of nearly every Linux system, and on 24 October Christian Brauner merged support for writing systemd programs in Rust. After the kernel and Ubuntu's Rust coreutils and sudo (see From Lab to Factory), it is the next big piece of Linux to let Rust in.
Three days later the first tool landed. systemd-keyring-setup enrolls X.509 certificates into the kernel's keyrings at boot and then seals them. The maintainers set tight limits:
- Rust is only for new tools at the edge of systemd, and existing C code stays
- There is no cargo and there are no outside crates, everything builds with meson as
no_stdcode - systemd brings its own
BoxandVec, where a failed allocation returns an error instead of aborting
I wrote up the details in my full post on rust-trends.com.
Cloudflare Ports TypeScript to Rust
TypeScript has earned its place on the web, and with Rust powering the plumbing underneath, it only gets faster. Cloudflare and VoidZero are building tsrs, a Rust port of the TypeScript compiler, in close collaboration with the TypeScript team. It lives in the Oxc toolchain and follows TypeScript's design decisions. Nobody is forking the language.
Early benchmarks put it at up to 8x faster than TypeScript 7.0 with about 70% less memory, on the same number of type-check workers. Why Rust when a Go port already exists? WebAssembly. A Go program has to carry its garbage collector into Wasm and a Rust program does not, which counts when you want a whole toolchain running in a browser.
2026 Is a Big Year for the Rust Compiler
Much of the work on the Rust compiler happens out of sight, which is exactly why I enjoyed Matyáš Racek’s post. Compiler performance is his main interest, he recently joined perf triage, and his point is that several long-running efforts pay off in the same year.
The next-generation trait solver, almost ten years in the making, fixes a batch of soundness bugs and holds answers to old problems in async Rust and impl Trait. Polonius, the new borrow checker, lets more code compile. The parallel front end is close to stabilization. Racek calls LLVM 23 an "unambiguous and unexpectedly large" performance win for rustc. A project goal also aims to let cargo share build artifacts between cargo check and cargo build.
What 3,300 Rust Users Want From Variadic Generics
These surveys shape the language, so it is important they get the reach they need. The Variadic Generics Micro Survey drew over 3,300 submissions. The team read the free answers by hand, for privacy and quality reasons, which is why the results took a year.
One need comes up again and again: implementing a trait for tuples of every size. Today that takes a macro that stops at some fixed length. Skeptics fear "death by a thousand cuts", small obscure features piling up until Rust is hard for newcomers. The team's advice for a future proposal is a syntax that is easy to read and clear wins over the macro workarounds.
Snippets
Google's Rust Style Guide How Google wants Rust written across Android, Chrome and the rest. It builds on rustfmt and the Rust API Guidelines, then adds firm picks of its own, such as preferring unique ownership over Rc and Arc.
A fast and secure tar parser for the Rust ecosystem Astral built tar-codec after finding that uv and pip could see different files in the same tarball. Since uv 0.13 it parses source distributions, roughly twice as fast as the parser it replaced.
How to fund Rust contributors The Rust Funding team lists three ways to pay for Rust work: the maintainer funds of the Rust Foundation and RustNL, fundable Project Goals, and GitHub Sponsors for individual contributors.
We are thrilled to have you as part of our growing community of Rust enthusiasts! If you found value in this newsletter, don't keep it to yourself — share it with your network and let's grow the Rust community together.
👉 Take Action Now:
Share: Forward this email to share this newsletter with your colleagues and friends.
Engage: Have thoughts or questions? Reply to this email.
Subscribe: Not a subscriber yet? Click here to never miss an update from Rust Trends.
Cheers,
Bob Peters
Want to sponsor Rust Trends? We reach thousands of Rust developers biweekly. Get in touch!