5 ms·
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
by davnicwil 7y 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.
- kevinbluer 7y agoIron could be worth a look: http://ironframework.io http://ironframework.io Haven’t used it extensively, but it’s pretty feature-rich and looks reasonably well-maintained.
- steveklabnik 7y agoActix 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!
- deleted 7y ago[deleted]
- tiniuclx 7y agoI 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 https://github.com/actix/examples
- jnordwick 7y agoYeah, Go or Python both have good ones. Don't torture yourself - this isn't rust's wheelhouse.
- steveklabnik 7y agoDepends on what you need; on benchmarks, like Techempower, actix is absolutely killing it.
- dang 7y agoWould 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 https://news.ycombinator.com/newsguidelines.html
- jnordwick 7y agoI 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.
- dang 7y agoI'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.