News for hackers. Stuff that matters.
Re:How to get started with Rust for Web Dev by echelon on Monday September 19, 2022 @06:49AM (#32896628)
Actix is really great!

You can inject web::Data<T> into your handlers for any dependency you'd like : database pools, config objects, in-memory caches that you populate from another thread.

Serde makes request and response marshalling a breeze.

The websocket support is great too.

We're using it for a couple of high traffic websites now.

The ecosystem needs better SQL tools. Diesel is too ORMy, and SQLx has rough edges around connection pooling. But these aren't show stoppers, and it'll get better.

Re:How to get started with Rust for Web Dev by mbvisti on Monday September 19, 2022 @07:08AM (#32896774)
It is, yeah! Been such a joy using it, great docs as well. Haven't done much with a DB yet (other than following along the awesome Zero 2 Prod book) but my general impression of SQLx was quite good!