Hacker News new | ask | show | jobs
by aaron-lebo 3468 days ago
It's my understanding that the current Rust web framework landscape is dealing with moving over to futures (example: https://github.com/hyperium/hyper/issues/934).

The framework seems to nail the API, but what's it doing down at the bottom of the stack? Any benchmarks?

Apologies if they are somewhere obvious, but didn't see it on the site.

2 comments

https://github.com/SergioBenitez/Rocket#future-improvements

Today, it's built on top of hyper, which is still synchronous. It's also only using the lowest parts of hyper, apparently.

There's a branch for tokio integration, but needs the tokio 0.1 release, which is coming soon but not _quite_ out yet.

Checking the source, it looks like it uses hyper under the hood for the nuts and bolts, so presumably it will benefit from the move to futures without too much effort