What to use for a Rest API written in Rust?
Hey guys!
Just starting with rust, I want to rebuild a few rest apis in it to get to know the language and the ecosystem better. I've been searching for the right libraries, right know we have a code generator in python that generates the models and schemas and the basic crud endpoints for them from the database ddl. I want to do a similar thing in rust, I found something similar with `diesel` and the `dsync` utility, although I don't really like orms, it has a nice and easy to use API for writing raw SQL. And for the web framework I found `axum` to be the friendliest (checked out rocket, actix-web and warp.). What do you guys recommend, what are your experiences with these and what do you see as a good bet for the future? (However I'd try to use a design similar to https://kerkour.com/rust-web-application-clean-architecture , so I might not depend on these libraries that much)
You probably want to check out the Zero to Production book which is about using Rust for back-end development.
https://www.zero2prod.com/
I've written services in both Warp and Axum that are in production right now (hosted on k8s, with metrics, liveness probes, and all of that jazz that you expect from a service). I like Axum the most.