For a new Rust API in 2026, start with Axum. Pick Actix Web if you want the most established high-throughput option, Rocket if you value ergonomics and a batteries-included feel, and Leptos or Dioxus only if you want to write the front-end in Rust too. And if you run a .NET shop building ordinary business systems, the honest answer to "should we switch?" is usually no, with a few exceptions covered below.
Versions and licences come from crates.io as of 2026-12-05. I do not quote benchmark numbers: framework benchmarks depend heavily on the test, and I could not verify a neutral, current comparison with ASP.NET Core.
Quick pick
| Need | Pick | Latest (crates.io) | Licence |
|---|---|---|---|
| Default choice for a new API | Axum | 0.8.9 (2026-04) | MIT |
| Mature, performance-focused server | Actix Web | 4.21.0 (2026-12-04) | MIT or Apache-2.0 |
| Ergonomic, macro-driven framework | Rocket | 0.5.4 (2026-11-21) | MIT or Apache-2.0 |
| Full-stack web UI in Rust (WASM + SSR) | Leptos | 0.8.23 (2026-12-04) | MIT |
| Cross-platform UI in Rust | Dioxus | 0.7.10 (2026-11-27) | MIT or Apache-2.0 |
Axum
What it is. A web framework from the Tokio project, built around async Rust and the surrounding Tokio ecosystem. Handlers are ordinary async functions and request data is pulled out using "extractors".
Maturity. Version 0.8.9, last released in April 2026. It is a 0.x version, so the maintainers reserve the right to make breaking changes, though releases are not frequent. Several 2026 comparison articles treat it as the default for new APIs; JetBrains also announced Axum support in RustRover in July 2026, a sign of tooling attention.
Best for. REST and JSON APIs, microservices, and teams who want to stay close to the Tokio ecosystem.
Limits. It is a framework, not a full platform: you choose your own database layer, validation, authentication and templating. Error messages from complex generic types can be hard to read for newcomers.
Choose it if you want the "default" Rust choice with a large pool of examples.
Actix Web
What it is. One of the oldest and best-known Rust web frameworks, with a reputation for performance. It is on 4.x, which is the only stable-major (post-1.0) option in this list.
Maturity. Version 4.21.0, released 2026-12-04, so it is very actively maintained.
Best for. High-throughput services and teams that want a long-established framework with a stable major version.
Limits. It has its own runtime conventions, which can make mixing with other Tokio-based libraries slightly more involved than with Axum. Blog posts claim it is 10 to 15 percent faster than Axum under heavy load; those are not controlled benchmarks, and for most business applications the database will be the bottleneck.
Choose it if you want a stable-major framework and raw throughput matters.
Rocket
What it is. A framework that emphasises developer ergonomics: routes and request guards are declared with attributes, and many common needs are built in.
Maturity. Version 0.5.4, released 2026-11-21. Still 0.x.
Best for. Smaller services and teams who prefer a more guided structure.
Limits. Smaller ecosystem than Axum or Actix, and the 0.x version means expect changes.
Choose it if you like its style after building a small prototype.
Leptos
What it is. A Rust framework for building web user interfaces, using fine-grained reactivity, and supporting server-side rendering as well as client-side WebAssembly.
Maturity. Version 0.8.23, released 2026-12-04, MIT licensed. Pre-1.0.
Best for. Teams that want a Rust-only full stack with shared types between server and browser.
Limits. WebAssembly bundles add size and build complexity; the front-end ecosystem is far smaller than JavaScript's; and it is pre-1.0.
Choose it if you want one language end to end and accept a younger ecosystem.
Dioxus
What it is. A Rust UI framework with a React-like model, aimed at web, desktop and mobile from one codebase.
Maturity. Version 0.7.10, released 2026-11-27, MIT or Apache-2.0. Pre-1.0.
Best for. Rust developers who want to build cross-platform interfaces in one language.
Limits. Like Leptos, a younger ecosystem. Platform support varies, so check the documentation for each target.
Choose it if cross-platform UI in Rust is itself the goal.
Should a .NET shop switch to Rust?
Here is the plain version.
Reasons to stay on .NET.
- ASP.NET Core is mature, well documented, and has a huge ecosystem: identity, Entity Framework, background services, dependency injection and tooling are all built or standard.
- Your team already knows C#. A Rust rewrite means months of learning, slower early delivery and a smaller local hiring pool.
- For typical SME work (portals, helpdesk, HR, timesheets, dashboards) the bottleneck is business logic, requirements and the database, not language speed.
- A rewrite is a risk with no new features for the customer.
Reasons Rust can make sense.
- A specific component needs tight memory control or very predictable latency: a proxy, a parser, a high-volume ingest service, an embedded or edge agent.
- You want to ship a small, dependency-free binary, or reuse the same code compiled to WebAssembly.
- A security policy asks for memory-safe components in an exposed edge layer (although C# is also memory safe, as are Go and Java).
The middle path. Keep the main system in .NET and write a small Rust component only where it earns its place, communicating over HTTP or a queue. Do not rewrite working systems for fashion.
Rust on Cloudflare Workers
If you deploy on Cloudflare, Rust is a documented path: Workers can be written in Rust with the workers-rs crate. The Rust code compiles to WebAssembly (wasm32-unknown-unknown), a JavaScript entry point is generated, and Wrangler deploys it. The documentation lists bindings to KV, R2 and Queues. It also lists limits: unoptimised Wasm binaries can be large and exceed bundle limits or slow startup, you should tune the release profile (LTO and a single codegen unit), and strip = true must not be set because wasm-bindgen needs a section that stripping removes. In short, it works, but it is more build work than writing the Worker in TypeScript.
How to choose
- Is there a real reason for Rust? If not, stay with your current stack.
- If yes, pick Axum unless you have a specific reason for Actix or Rocket.
- Pin versions. Axum, Rocket, Leptos and Dioxus are 0.x. Upgrades may need code changes.
- Prototype first. Build one small endpoint with a database call, auth and logging in each candidate, and see which one your team can read and maintain.
- Plan hiring. A framework is only as good as the people who can maintain it for five years.
The 2025 State of Rust survey results were published on 2 March 2026 and are worth reading for the wider community picture, including how people use Rust.
What a first project looks like
A typical Axum service is a small main function that builds a router, attaches handlers and starts a Tokio server. Handlers are async functions that return JSON, and shared state such as a database pool is passed in as an extractor. That is easy to read for anyone who knows ASP.NET Core minimal APIs, but the surrounding choices are all yours: database crate, migrations, logging, configuration and authentication. In ASP.NET Core most of those are decided for you; in Rust you assemble them. Budget time for that assembly, and write down your choices so the next developer is not guessing.
Common questions
Which framework in 2026? Axum by default.
Should a .NET team switch? Usually not.
Can Rust run on Cloudflare Workers? Yes, via WebAssembly and workers-rs.
Are they stable? Axum and Rocket are 0.x; Actix is 4.x.
Leptos vs Dioxus? Both Rust UI frameworks; Dioxus targets more platforms.
Related: NGINX alternatives in Rust, Rust databases and search engines and Heroku alternatives.
No affiliate links; none of these vendors paid for a mention.
If you would rather have it built and kept running
I build custom systems on .NET and a modern web stack (helpdesk, HR and timesheet-style internal tools and SaaS) and keep them running after launch, including Cloudflare deployment. See custom system development, monthly maintenance from about RM3,000 per month (estimate, confirmed after a short scoping call), or contact me.