tldr; - it was hard for me to determine which rust web framework I should be using, since I want something light like flask. best resource was <a href="https://github.com/flosse/rust-web-framework-comparison" rel="nofollow">https://github.com/flosse/rust-web-framework-comparison</a><p>Very recently I've taken a tour around the Rust web server ecosystem, and I think it's way too hard to find one to pick.<p>The author mentions actix-web[0], and mentions how fast it is, but it's actually right <i>below</i> hyper[1], which I find to be simpler, because it doesn't bring in the whole actor frame work thing. Hyper builds on Tokio[2] which introduces the usual event loop paradigm that we're used to in other languages (which AFAIK is the fastest way to write web servers to date). There's also great talk[3] that introduces the choices that tokio makes that are somewhat unique.<p>Here's what I want out of a web framework:<p>- express like-interface (func(req,resp,next) pattern provies just the right amount of freedom/structure IMO)<p>- good routing (plus: decorators/a fairly ergonomic way to specify routes)<p>- reasonable higher-level interfaces to implement (I want to implement an interface, and be able to receive things like logging, tracing, grpc/thrift/whatever transports for free, good interfaces are what make writing reusable stuff like that possible)<p>Here's what I found about the various frameworks that exist out there:<p>- Rocket.rs[4]: Seems to do too much (I tend towards building APIs), rocket is closer to django/rails than it is to flask/sinatra.<p>- Gotham.rs[5]: Seems perfect, but falls flat on the feature front, half the stuff on the landing page are features of rust, not the library. Doesn't seem to have enough batteries included, for example there's currently work being done on streaming request bodies (<a href="https://github.com/gotham-rs/gotham/issues/189" rel="nofollow">https://github.com/gotham-rs/gotham/issues/189</a>), that's not a issue I want to run into.<p>- Iron.rs[6]: The oldest of the bunch, but also very very fast (which I discovered actually browsing rocket's issues[7]), not based on hyper, and also not actively maintained.<p>I had no idea which of these to use, or how to find ones I've missed, then I stumbled upon this amazing resource: <a href="https://github.com/flosse/rust-web-framework-comparison" rel="nofollow">https://github.com/flosse/rust-web-framework-comparison</a>.<p>However, when you look at that comparison, it's really suspicious how much of actix-web has filled out, which is often indicative of something written from one point of view (like when people have comparison pages, and one option seems to just have "everything"). And again, like I said actix seems to be doing too much, I don't really want to utilize the actor model, I just want a relatively fast, ergonomic simple library with the most basic batteries included.<p>BTW, everyone keeps raving about type safety and I wonder why people don't give Haskell more of a go. If Rust gives you the type safety equivalent to a shield, haskell is a phalanx. I've never felt more safe and protected by my types than when I write Haskell -- it's relatively fast, memory safe, has fantastic concurrency primitives, and though it can be tough to optimize (which comes to down to optimizing for lower amounts of GCs like most other memory managed languages), it's pretty fast out of the gate. I use servant (<a href="https://haskell-servant.readthedocs.io/" rel="nofollow">https://haskell-servant.readthedocs.io/</a>) and love it.<p>[0]: <a href="https://github.com/actix/actix-web" rel="nofollow">https://github.com/actix/actix-web</a><p>[1]: <a href="https://hyper.rs/" rel="nofollow">https://hyper.rs/</a><p>[2]: <a href="https://tokio.rs/" rel="nofollow">https://tokio.rs/</a><p>[3]: <a href="https://www.youtube.com/watch?v=4QZ0-vIIFug" rel="nofollow">https://www.youtube.com/watch?v=4QZ0-vIIFug</a><p>[4]: <a href="https://rocket.rs/" rel="nofollow">https://rocket.rs/</a><p>[5]: <a href="https://gotham.rs/" rel="nofollow">https://gotham.rs/</a><p>[6]: <a href="http://ironframework.io/" rel="nofollow">http://ironframework.io/</a><p>[7]: <a href="https://github.com/SergioBenitez/Rocket/issues/552" rel="nofollow">https://github.com/SergioBenitez/Rocket/issues/552</a>