Your Infrastructure Needs Safer Code. Not a Fresh Start.

Your Infrastructure Needs Safer Code. Not a Fresh Start.
Systemd’s carefully limited Rust adoption is a useful reminder: modernization should earn its way into a system, not demand that everything else move out.
By Marco Lopes · Kordspace Insights
I like a technology announcement that comes with a list of things the developers have decided not to do.
Not because I’m opposed to ambitious engineering. I run a technology studio. Getting excited about what we could build is a fairly important part of the arrangement.
But when somebody proposes improving infrastructure, my first question isn’t how impressive the replacement looks. It’s how much of the working system we’re expected to disturb before anybody benefits.
That’s why the systemd Rust announcement caught my attention.
LWN reported on October 26, 2026 that systemd had added support for Rust components. The important qualification: new leaf components only, no porting existing C code, and no Rust components that other components depend on. This is permission to build at the edges, not an announcement that everything is being rewritten. (lwn.net)
Honestly, the restraint is the interesting part.
The boundary matters more than the language.
The underlying pull request was merged on October 24. Its rules keep the existing Meson build system rather than introducing Cargo, and make Rust support optional. The new language has to fit into the project’s infrastructure. The infrastructure doesn’t get redesigned around the new language. (github.com)
I think that’s a much more useful modernization principle than picking a preferred technology and working backward until we’ve justified replacing everything.
Imagine a business with an older application that still handles orders correctly, alongside a new requirement to process uploaded files. I’d want to investigate whether that new capability could have a well-defined boundary before proposing a replacement for the entire application.
What goes in? What comes out? Who owns the data? What happens when it fails?
Those questions aren’t as entertaining as selecting a new stack. They’re also the questions I’d want answered before signing the invoice.
Modernization should reduce the risk you carry, not multiply the systems you have to understand.
Safer code still needs somewhere sensible to live.
There is a real technical distinction here. Rust’s safe code gets compile-time memory-safety checks, while certain operations require unsafe and programmer-maintained guarantees. The Rust documentation explicitly recommends keeping unsafe sections small and enclosing them behind safe abstractions. Interacting with C is one place where these responsibilities matter. (doc.rust-lang.org)
So I wouldn’t read this announcement as a certificate declaring systemd memory-safe.
I’d read it as an opportunity to write some new code differently, within explicit limits.
The implementation still connects Rust programs to systemd’s existing C libraries through generated bindings and wrappers. That makes the interface part of the engineering work, not an awkward detail to be waved away after choosing the language. (github.com)
For me, the practical question is where the guarantees stop.
If I’m reviewing a mixed-language design, I want ownership, lifetimes, error handling, and cleanup responsibilities written down at that boundary. I don’t want “the Rust part is safe” standing in for an explanation of the whole interaction.
A compiler is useful. It should not also have to be your project’s spokesperson.
Compatibility is a feature, even when nobody applauds.
One detail in the pull request deserves more attention than the language debate: the Rust command-line framework follows the C programs’ conventions, with a parity test checking matching behavior byte for byte. (github.com)
That’s the kind of modernization I want to sell.
Not “we changed the internals, so please accommodate six unrelated differences.” More like “we changed the internals, and preserving the contract was part of the job.”
From a Kordspace builder’s perspective, I’d make that a requirement whether we were introducing a Rust utility, replacing an integration, or adding an AI-assisted workflow.
Keep the experiment behind a boundary. Make its obligations explicit. Don’t ask the customer to become enthusiastic about implementation details just to keep doing their work.
I’d rather present a boring acceptance test than an exciting explanation for why the old workflow no longer works.
What I would actually do before approving the work.
First, name the problem without naming the technology.
“We want Rust” isn’t enough. “We want this new input-processing component to have explicit memory ownership and a narrow interface” gives me something to evaluate.
Second, choose a bounded first delivery. Define its inputs, outputs, failure behavior, and owner. Decide how it can be disabled or removed before making it indispensable.
Third, budget for coexistence. Include build tooling, review, debugging, deployment, and documentation in the proposal. I wouldn’t approve a migration estimate that ends at “the code compiles.”
Fourth, test the contract, not just the happy path. Include malformed inputs, resource exhaustion, interrupted operations, and compatibility with whatever consumes the result.
Finally, define what earns the next step. Establish measurable acceptance criteria for reliability, resource use, and maintenance effort. Expansion should follow evidence, not the understandable desire to keep using the interesting new tool.
None of this requires hostility toward old code or unquestioning loyalty to it.
My takeaway from systemd’s approach is simpler: improvement doesn’t need permission to become a revolution.
Build the safer component. Prove the boundary. Leave the demolition permit in the drawer.
Conversation (0)
No comments yet. Start the conversation.
Join the conversation
Create a free member account to comment.