4 ms·
I like rocket a lot - practically as easy as writing flask but with glorious type-safety thrown in - but I really wanted async ('like, now') because my project
by adwhit 9y ago
I like rocket a lot - practically as easy as writing flask but with glorious type-safety thrown in - but I really wanted async ('like, now') because my project will have a large number of persistent connections. I'm sure rocket will get async eventually but it looks to be some way off.
In comparison to rocket, actix-web does not use codegen tricks so is not as ergonomic or as safe - e.g. it cannot statically check that the path variables that you ask for actually exist on the route - but these are things that a simple test suite easily picks up (incidentally actix-web has a nice built-in test server).
Also I was a little concerned that rocket development has stalled somewhat. 26 PRs waiting at time of writing. As I recall the maintainer is teaching a Rust class as Stanford so he's most likely just very busy.
- fafhrd91 9y agoi just added extractors system. it is not released yet, i am planing to release it later this week https://actix.github.io/actix-web/actix_web/struct.Route.html#method.with https://actix.github.io/actix-web/actix_web/struct.Route.htm...
- aschampion 9y agoFor async, also worth considering Gotham: https://gotham.rs/ https://gotham.rs/ I only have minimal experience with it, since I've also eventually chosen actix-web for all my projects so far due to its simplicity.