This happened in 2023 and 2024. The Rust ecosystem has moved since then, and I'll note what's changed where it matters.

My plan was simple, and I was quite proud of it.

I'd noticed a pattern in engineering blogs. A company builds its backend in Python, Ruby or Java. It grows. Then it rewrites the hot parts in C++ or Rust and writes a celebratory post about it. So I thought: why not skip the middle step? If I'll end up in Rust anyway, I might as well start there and never worry about a rewrite.

I needed a backend for my own apps, and I'd spent most of my career as a front-end and mobile developer. I'd built a few backends, but not many. Rust looked like the perfect excuse to level up. Every video I watched said the same things: it's as fast as C, it's memory safe, you can use it for anything, and it's the future.

So I bought the books, worked through the tutorials, and learned the basics. I knew the learning curve was steep, and I accepted it. Pay the cost once, I told myself, and the skills will pay for themselves for years.

I want to be clear about my attitude, because it matters for everything that follows. I wasn't a skeptic looking for reasons to hate Rust. I wanted to love it. I was ready for mistakes, ready for the hard parts, and ready to keep learning for as long as it took.

Fighting the compiler

The first friction came from the language itself. Pass a value to a function, and it's moved, so you can't use it on the next line. Take a reference instead, and the borrow checker starts asking about lifetimes. Then come trait bounds you don't understand, and .clone() calls sprinkled around until the code compiles.

Some of that was simply me being new, and I own it. Ownership is a real concept, and it does get easier with practice.

But I judged it wrong. I told myself the friction was temporary, a small adjustment in how I think. In reality, friction you feel on small code doesn't go away on big code. It compounds. And for a backend whose job is to move data between HTTP and a database, I was paying that price for protection against memory bugs I'd never have had in a garbage-collected language.

Choosing a database library

The first real decision was how to talk to the database, and Rust had no default answer. Diesel, SQLx and SeaORM were all reasonable, each with its own philosophy. The community advice was basically "pick whichever you like". That's fine for an experienced developer. As a beginner, I had no basis for liking anything.

Whichever one I picked, a lot ended up written by hand. Diesel migrations are plain SQL files. SQLx is raw SQL by design, checked at compile time. I don't mind SQL. Every backend developer should know it, and it will outlive most of the tools built on top of it.

But a backend is mostly CRUD, and writing every query and migration by hand doesn't scale. Sooner or later you write helpers to stop repeating the same SQL everywhere. At that point you're building a small, worse ORM of your own, which is exactly what I'd hoped a library would save me from.

Looking for Rails

That's when I changed my mind about something. I'd started out happy to learn everything from the ground up. Now I just didn't want to reinvent the wheel. I wanted what Django, Rails, Laravel or NestJS give you: run one command, and get routing, an ORM, migrations, validation, auth and a test setup that already fit together.

The Rust ecosystem was huge. There were crates for almost anything. But a batteries-included web framework barely existed. Axum and Actix are excellent, but they give you routing and middleware and leave the rest to you.

Loco, a framework openly modeled on Rails, had only just been released and was very young. The most ambitious project I found was Pavex, by Luca Palmieri, the author of "Zero to Production in Rust". It was in closed beta. You signed up, waited for an invite, and needed an activation key from the project's Discord just to run its CLI. And as I understood it at the time, the plan was to charge for using it rather than release it as ordinary open source.

I still remember the conference talk. The pitch was that this framework would finally make Rust mainstream for backend development. Then came the news that it wouldn't be freely available. (Pavex has since been released under the Apache 2.0 license, but back then it was a dead end for me.)

In hindsight, this was the biggest warning sign of all. Even Node, an ecosystem I'm not a fan of, has NestJS. When a language with that much enthusiasm behind it has no widely adopted, batteries-included web framework, it tells you who the community is building for. Rust's strongest communities work on infrastructure, tooling and systems software. CRUD apps aren't their priority, and that's a perfectly reasonable choice. It just wasn't a good sign for me.

The runtime nobody mentions

With no framework, I assembled the backend myself, from bits of "Zero to Production in Rust" and a lot of blog posts. Routing, configuration, logging, the database layer: all wired up by hand.

Then I ran into a problem I didn't know could exist. Rust has async and await, but no built-in runtime to run them. In JavaScript, Dart or Python, the event loop is simply there. In Rust, an async function returns a future that does nothing until an executor polls it, and the language doesn't ship one. You pick a runtime yourself, usually Tokio, sometimes async-std or smol.

That choice is bigger than it looks. Many libraries are written for one specific runtime, so your choice decides which libraries you can use. Mixing them can crash at runtime with an error like "there is no reactor running". Changing your mind later means touching a lot of code. I went with Tokio, like most people.

I also kept running into the advice that you don't need async at all unless you know what you're doing. Maybe that's true for a systems programmer. But after six to eight years of Dart and JavaScript, I couldn't picture a server without async, and nobody explained what the alternative looked like. The official async book was unfinished for years, so beginners pieced it together from blog posts.

Here's an opinion many experienced engineers will disagree with. I understand how an event loop works. I just don't think an application developer should have to care. Good abstractions exist so we can spend our attention on the product. Needing to understand executors, pinning and Send bounds to write a CRUD endpoint isn't a badge of honor. It's a cost.

Back to the database

Picking Tokio sent me straight back to the database. Diesel was synchronous at the time. Calling it inside an async handler blocks one of Tokio's worker threads, so you either wrap every query in spawn_blocking or add a separate diesel-async crate. SQLx was async, but you had to enable the right runtime through a feature flag, and getting it wrong meant those runtime panics again.

This is when I noticed the pattern that would define the whole project. Every decision was tied to another one. Every time I moved forward on one thing, I had to go back and redo something I thought was finished. One step forward, two steps back.

Writing tests

Once I had a database library that played nicely with Tokio, I could finally write my CRUD endpoints. Then came testing.

cargo test works, but it's minimal. There's no watch mode. I added cargo-watch to rerun tests on save and tried cargo-nextest as a faster runner. With tests running in parallel against a shared database, the watch setup never worked reliably for me.

Everything around the tests had to be built by hand: a separate test database, migrations before each run, transactions that roll back or tables cleaned between tests, fixtures, helpers for logged-in users. Frameworks in other ecosystems hand you all of this on day one. I found myself rebuilding things I hadn't had to think about in years.

Mocking was the hardest part. Say a handler calls a Google API, and I want to check that my code called it correctly without touching the network. In most ecosystems you put the service behind an interface and let a dependency injection container swap in a fake. Rust has no mainstream DI container. The usual approach is a trait, passed in either as a generic parameter or as a boxed trait object. Generics spread type parameters through every struct they touch. Trait objects bring their own lifetime and async headaches. Crates like mockall help, but add even more ceremony.

If you're reading this and have no idea what the hell I'm talking about, believe me, I felt exactly the same. That's the Rust way of doing things. Nothing is easy.

The result was code I couldn't trust. The compiler guaranteed memory safety, but memory safety was never my problem. Only tests can tell you whether your business logic is right, and tests were the most painful part of the whole stack.

There's a popular idea in the Rust world that a strong enough type system makes unit tests almost unnecessary: get the types right, and the compiler proves your logic is right too. In theory, maybe. In practice, encoding business rules that way takes a level of Rust wizardry very few people have. And even if I had it, I'd still take the simplicity of a plain unit test and TDD over a clever type.

Deploying

After weeks spent on features that would have taken days elsewhere, I rented a server and tried to deploy.

Rust compiles to native machine code, so you build for a specific target: a CPU architecture plus an operating system. As someone who had only ever deployed JavaScript, I first had to find out which architecture my server even used. Then came cross-compiling from my laptop to Linux, which needs extra toolchains and linker setup. Then glibc: a binary built against a newer C standard library refuses to start on a server with an older one. Then OpenSSL, which kept failing to build or link.

After a lot of configuration, I finally had something that installed. I started it.

It died.

No error message. No panic. No logs. The process was simply gone. After a lot of digging through system logs, I found two words: segmentation fault.

I'd spent my career on front-end and mobile code. I'd never written C, never built a desktop app or a game. I had never seen a segfault in my life. It's what happens when a program tries to touch memory it isn't allowed to, and the operating system kills it on the spot. It's the classic crash of C programs, and exactly the kind of bug Rust promises to prevent. Yet I met my first one in the language whose main selling point is memory safety.

I spent three evenings on it. Rebuilding, tweaking, reinstalling, searching. I never found the cause. The problem lived at a level of the stack my career had never asked me to touch. I just wanted to ship a backend, and I ended up counting bytes in my operating system.

For the curious: in hindsight, I still don't know my exact cause, but I've since learned how this usually happens. Safe Rust can't produce a segfault on its own. When a Rust program segfaults, the crash almost always comes from C code underneath: a system library, or a mismatch between where the binary was built and where it runs. Rust's guarantees stop at that boundary. And when the operating system kills a process for a segfault, Rust never gets the chance to print a panic or flush its logs. That's why there was nothing to read.

Docker

So I turned to Docker, hoping it would make the segfault go away. Isn't that its whole promise? Describe the environment once, and it runs anywhere.

I'd avoided it at first because I thought containers would cost me performance, and if I was using Rust, I wanted every bit of speed. That was wrong. On Linux, containers share the host's kernel, and the overhead is close to zero. Looking back, it was a perfect example of the mindset Rust had pulled me into: optimizing for performance I didn't need.

Docker helped, but much less than I expected. The image still had to be built for the right processor, so my old problems came right back. And when something didn't quite match inside the container, the app simply refused to start, again with no clear reason why.

Honestly, that still surprises me. Every problem I had came from the gap between my machine and the server, and closing that gap is the whole reason Docker exists. With Python or Node, you take the official image and move on. With Rust, my problems didn't go away. They just moved into the Dockerfile.

Up and running

Eventually, the Docker version worked. My backend was live and answering real requests.

That should have been the moment of triumph. Instead, it was the moment I lost interest. Every step had felt like walking through a minefield, and I couldn't face writing more code knowing the next mine was waiting somewhere. And remember, this was me at my most motivated, determined to love the language.

I spent the next couple of months looking for a batteries-included framework in another ecosystem, found one, and I've been building with it happily for about two years.

When Rust is worth it

Remember my clever plan to skip the rewrite? It had a flaw I couldn't see back then. Rewrite stories are memorable because they're rare. A typical backend spends most of its time waiting on the database and the network, not running its own code. When one server isn't enough, you add another. The companies that do move to Rust usually rewrite one proven bottleneck, years in, not the whole product before they have a single user.

Earlier I mentioned the advice that confused me so much: you don't need async unless you know what you're doing. My conclusion, it turns out, has the same shape. Don't use Rust unless you're absolutely sure you need top performance, or you work with something low-level, like microcontrollers. Otherwise, it's going to be a pain in the ass.

If you love the language, you don't have to give it up. Use it where it pays off. I still write Rust for scripts that have to be fast and for custom lint rules that run on every file in a codebase. And if your app hits a real bottleneck, you don't need to rewrite everything. Keep your main language, write that one hot path in Rust, and call it through FFI. Most ecosystems make this easy, with tools like PyO3 for Python or napi-rs for Node.