Why teams rewrite their software in Rust now
Teams rewrite their software in Rust where C speed and a garbage collector cannot both win. The tradeoff, and where a rewrite should stop.
· Spacing Mind · sMind

Teams rewrite their software in Rust when a program has to stay as fast as C and still reject a whole class of memory bugs before it runs. That is a narrow job. It is also the job behind Ruff, uv, the Rust bundlers in the JavaScript toolchain, Cloudflare's proxy, and a slice of the Linux kernel. The language did not get easy. Coding agents made its strict compiler cheaper to satisfy, which is why the wave shows up in the same years as AI coding.
The rest of this piece is the boundary: which rewrites are real, which headlines overshoot, and how sMind uses Rust without throwing away the web UI.
Why rewrite their software in Rust instead of staying put?
The programs moving are rarely whole products. They are the layer everyone waits on. A linter. A package installer. A bundler. A proxy. A driver. Those tools sit on the critical path of every other build, so a 10x change there is felt by people who never chose the language.
A few of the public ones:
| Tool | What moved | Where they said so |
|---|---|---|
| Ruff | Python linter and formatter. Astral describes it as written in Rust, and as 10–100x faster than tools like Flake8 and Black. | Astral's own docs |
| uv | Python package and project manager, also from Astral, also Rust. Their 2024 launch post reported 8–10x over pip without a cache, and 80–115x with a warm cache, on their benchmarks. | uv: Python packaging in Rust |
| SWC | TypeScript and JavaScript compiler used under Next.js | SWC |
| Turbopack | Incremental bundler written in Rust, used by Next.js. This site is Next.js 16, and its production build runs on Turbopack. | The build of spacingmind.com |
| Rolldown | Rust bundler. Rolldown 1.0 shipped on 7 May 2026 and is the bundler inside Vite 8. VoidZero's own note says it is 10–30x faster than Rollup on their benchmarks, with the gap growing as the project grows. | Announcing Rolldown 1.0 |
| Biome | Formatter and linter for the JavaScript family, written in Rust | Biome |
Read those speed numbers as the projects' own measurements, taken on their own workloads. They are a reason the rewrite was worth it to those teams. They are not a promise that your program gets the same ratio.
The same months produced a useful counterexample. The TypeScript compiler port did not go to Rust. Microsoft ported it to Go. A rewrite is a bet on a specific constraint, not a fashion you apply to every repository.
What was wrong with C speed and a garbage collector?
For a long time the practical choice looked like this.
C and C++ give you the speed. You also own every allocation. Use-after-free, double-free, and data races are ordinary bugs in that world, and they are the bugs attackers like. The Chromium project has written that about 70% of its high-severity security bugs are memory-unsafety problems, meaning mistakes with C and C++ pointers (Memory safety). The Linux kernel's Rust work grew from that same class of bug.
A garbage-collected language, Go or Java or JavaScript, takes that class of bug off the table for most code. The collector is the cost. It can show up as a pause at the moment you least want one.
Discord wrote the clean version of that story in 2020. Their Read States service, the feature behind unread badges, ran on Go. Latency spiked roughly every two minutes. They traced it to the garbage collector, rewrote the service in Rust, and reported that latency, CPU, and memory all improved. The post is still the one to read: Why Discord is switching from Go to Rust.
So the deadlock was real. Manual memory was fast and sharp. A collector was safer and sometimes late. Teams kept looking for a third answer that did not add a collector to the hot path.
How does the borrow checker break that deadlock?
Rust's answer is ownership, checked before the program runs.
Every value has one owner. You can lend it out, either to many readers or to one writer, and the compiler rejects the combinations that would dangle a pointer or mutate something another part of the program is still reading. When the owner goes out of scope, the value is freed. There is no garbage collector in that design. The bill is paid when you compile.
A small version of the rule:
fn takes(name: String) {
println!("{name}");
}
fn main() {
let name = String::from("sMind");
takes(name);
// println!("{name}"); // moved into takes; this does not compile
}
The line that looks harmless is the line the compiler refuses. The string has one owner. After takes receives it, the caller does not have it anymore. That is the entire trick, scaled up to threads, buffers, and parsers: the dangerous pattern is a compile error instead of a crash report.
The same mechanism is why Rust feels harsh to read. A lifetime, an exclusive borrow held too long, an async block that captures the wrong reference: the compiler is often right, and the error is often a puzzle. People bounce off that puzzle. The language's reputation for being difficult is not a myth. It is the cost of moving those checks out of production.
Where is Rust actually shipping?
Four places are worth separating, because the headlines tend to glue them together.
Developer tools. The table above. If you write Python, you have probably already run Rust this week and not noticed. If you write JavaScript on Vite 8, Rolldown is on the production build. If you work in this repository, Turbopack is.
Cloudflare. On 26 September 2025 Cloudflare described FL2, a Rust rewrite of the proxy that handles requests, built on their Oxy framework and on earlier Rust work such as Pingora. In their words, Rust "eliminates entire classes of bugs that plagued our Nginx/LuaJIT-based FL1, like memory safety issues and data races, while delivering C-level performance." They had started moving customer traffic in early 2025 and, in that post, planned to turn FL1 off in early 2026. Read the account they published: Cloudflare just got faster and more secure, powered by Rust.
Linux. Rust entered mainline in kernel 6.1 so the project could decide whether the trade was worth it. At the 2025 Kernel Maintainers Summit the maintainers decided it was. On 12 December 2025 Miguel Ojeda, who leads Rust for Linux, sent the patch that ends the experiment. His summary: the experiment is done, and Rust is here to stay. He also wrote the limit in the same mail. It does not mean every configuration, architecture, and toolchain works, and a lot of work remains. Android 16 devices on the 6.12 kernel already ship a Rust ashmem allocator, which is production use, not a lab branch. The kernel is not being rewritten. Selected new code can be Rust. The source of the decision is Ojeda's patch, [PATCH] rust: conclude the Rust experiment, and LWN's notes from the summit.
Windows, and the claim that got ahead of the work. Microsoft already has Rust in selected Windows components. In December 2025, distinguished engineer Galen Hunt wrote that his goal was to eliminate every line of C and C++ at Microsoft by 2030, combining AI and algorithms, with a north star of one engineer, one month, one million lines. The post traveled. Hunt then clarified it. Windows is not being rewritten in Rust with AI. His team's project is research into moving code between languages. The Register recorded both the original line and the clarification.
Discord's client, which is a plan with a date on it. Discord has used Rust since 2018 in infrastructure, voice, and parts of the current client. On 4 November 2026, CTO Stanislav Vishnevskiy wrote that the remaining goal was the whole client: Electron goes away, React Native goes away, mobile keeps a native UI and shares application code with desktop through Rust, and the desktop UI is GPUI, the GPU-rendered framework from the Zed editor, not Tauri. He said they hoped to put it in front of users soon. That is an announcement of a rewrite in progress. It is not a client you can install today and call finished.
Why do people bounce off Rust?
The borrow checker is the first wall, and it is not the only one.
Compile times on a large crate graph are measured in minutes, not in the save-and-see loop of a TypeScript file. The async ecosystem has its own dialect. Library coverage for ordinary product UI, forms, tables, accessibility, is thinner than the web stack, which is why a desktop app that must also be a website often keeps its screens in HTML.
A person can be a strong engineer and still stall for an afternoon on a lifetime error. That stall is the real adoption tax. It is also the tax coding agents change, when the work is the kind of work a compiler can referee.
Why do coding agents and Rust fit?
Three reasons, each with a limit. None of them is a study that says "agents should always pick Rust." They are the reasons the timing lines up.
The compiler is a reviewer that never gets bored. An agent edits, runs cargo check, reads the error, and edits again. A green check means ownership, types, and a large set of memory bugs have already failed the build. Tests still matter. They are no longer the only net. The limit: the loop is only as good as the API the agent is aiming at. Lifetime-heavy interfaces still make agents thrash, and a green build says nothing about whether the feature is the right feature.
The language boundary gets cheaper. An engineer who lives in Python or TypeScript can ask an agent for a Rust parser, a Rust CLI, or a Rust service, then review the behavior instead of first spending a month on the syntax. The strict compiler is what makes that handoff sane. The agent is not trusted because it sounds confident. It is trusted as far as cargo check and the tests agree, and no further. The limit: review still requires someone who can tell a copied pattern from a design that will hold. An agent that has never been asked to name the owner of a buffer will invent one.
The human cost was iteration time. The borrow checker did not get kinder. A person staring at the same error for an hour is expensive. An agent spending the same hour in a loop is cheap, provided a person reads the result. That is the part of "Rust is hard" that AI actually moves. Taste, security boundaries, and the decision to rewrite at all stay put.
Hunt's "one engineer, one month, one million lines" is the fantasy version of this idea. He walked it back as a Windows plan for a reason. Volume of translated lines is not a migrated system.
Where does sMind use Rust?
sMind runs Claude Code, Codex, GLM, Kimi, OpenCode, and others side by side, on your own provider accounts. The homepage states the split plainly: one Go binary runs the daemon, the API, and the web UI. Every client talks to that daemon over the same WebSocket API.
The desktop app, on macOS and Windows, is the Rust piece you can see. It is a Tauri shell. The Rust crate owns the native window, the menu, auto-update, notifications, and deep links. A second Rust library, with no GUI in it, is the daemon client: WebSocket, TLS through rustls, and the relay cryptography. The screens inside the window are the same web UI the daemon already serves at localhost:4648. One interface, two hosts.
That is a deliberate refusal of the Discord path. Vishnevskiy's point was that their new desktop UI is GPUI, not Tauri, because they want the interface itself in Rust and drawn on the GPU. sMind wants the opposite constraint. The product has to be the same in a browser tab and in the desktop window, so the pixels stay a web UI and the Rust stops at the frame around them. The download page is where that desktop build is offered. The orchestration, workspaces, and permission checks stay in the Go daemon, which is the right shape for a long-running process that launches other agents.
Rust at the window, Go at the daemon, one web UI in both places. That is the rewrite boundary as a product decision, not as a slogan.
What is left for the engineer?
An agent can drive a borrow checker to silence. It cannot tell you that the daemon should stay Go, or that a shared web UI is worth more than a pure Rust interface. Those are ownership questions one level up from the language: who owns the process, who owns the pixels, who is allowed to publish.
If you are choosing where to spend a rewrite, spend it where C speed and a collector are genuinely in conflict, and where a compiler can guard the result. Leave the rest alone. Linux did. sMind did. The teams that rewrote their linters and their proxies did it because that layer was the one they were waiting on.
FAQ
Is every program being rewritten in Rust?
No. Hot tools, proxies, and selected systems code are. Most application code is still in the language its UI and its libraries already live in. The TypeScript compiler going to Go is the reminder that "fast native rewrite" has more than one answer.
Will Linux or Windows become a Rust operating system?
Linux will keep Rust as a first-class language for new kernel code. The C kernel stays. Windows is not on a published plan to be rewritten in Rust by 2030. Hunt's line was a research goal, and he said so after it was read as a product commitment.
Should a product UI be rewritten in Rust?
When the UI must also be a website, usually no. A Rust shell around a web UI, which is what sMind ships, keeps one set of screens. A full Rust UI, which is what Discord is attempting with GPUI, is a different product bet and was not generally available when this was written.
Does Rust make code from an agent correct?
It makes a class of memory bugs fail at compile time. Logic bugs, broken security boundaries, and the wrong product decision still compile cleanly. The compiler is a strong reviewer. It is not the author.

