Hacker News new | ask | show | jobs
by davnicwil 2538 days ago
Can anyone recommend an http/rest api framework for Rust? I'd love to look at using it, last checked a couple of years ago and I don't remember finding anything that looked particularly stable / production ready.
3 comments

Actix web and rocket are the two most popular.

HTTP stuff benefits a lot from asynchronicity, and so there’s been a lot of churn over the past few years as this story shakes out. We’re almost there though!

I can second the suggestion for actix-web, it is a joy to use and I believe it is the only HTTP framework that has reached version 1.0 :)

Have a look at the sort of things you can do with it https://github.com/actix/examples

Iron could be worth a look: http://ironframework.io

Haven’t used it extensively, but it’s pretty feature-rich and looks reasonably well-maintained.

Yeah, Go or Python both have good ones. Don't torture yourself - this isn't rust's wheelhouse.
Would you please not break the site guidelines by posting flamebait? Your comment would be fine without the last bit.

https://news.ycombinator.com/newsguidelines.html

I don't feel quick one-off rest servers where performance is dominated by HTTPS/SSL (or even just play HTTP) are anywhere near rust's sweet spot. You pay heavy penalty for rust, and doesn't seem to be to be an area where it is appropriate.

Stop censoring opinions you don't like.

I'm not concerned about your opinions. To the dim extent that I'm aware of them, I probably agree with you. But if you continue to violate the HN guidelines we're going to have to ban you. I don't want to do that, because it's clear that you know a lot and also have good things to say. But at a certain point it's just not worth the damage it causes to the community. If you value being here, you need to abide by the contract, the same as other users do.
Depends on what you need; on benchmarks, like Techempower, actix is absolutely killing it.