HACKER Q&A
📣 nelsonic

Which Rust Web Framework and Why?


We are adopting Rust as our next programming language for type safety, speed, productivity, etc. So far so good.

What we need to understand is: Which Rust Web Framework should we use? Actix, Axum, Rocket, Yew, other...? And Why?

Specifically we want to know which are the "batteries included" frameworks (like Rails or Phoenix) and which are the barebones ones where we will have to define lots ourselves.

Know there are many Rustaceans on HN and would love to know what people are using and why. Please + Thanks!


  👤 jeremychone Accepted Answer ✓
I recommend Axum.

1) Not too high, not too low.

2) Very well componentized (e.g., Tower for middleware)

3) Very well modelized and complete (e.g., middleware, extractor, req/res extension, fallback, req/res mappers, simple and flexible response/error scheme)

4) Part of the Tokio umbrella.

5) Great user momentum and well-maintained.