3 ms·
How does this compare to Rocket (https://rocket.rs/ https://rocket.rs/) - I've just started using Rocket and it seems to provide everything that Hyper does and
by simonhamp 3y ago
How does this compare to Rocket (https://rocket.rs/ https://rocket.rs/) - I've just started using Rocket and it seems to provide everything that Hyper does and a lot more out of the box too
When would I use Hyper instead of Rocket?
- paavohtl 3y agoHyper is a relatively low level HTTP library, while Rocket is a web server framework. So Hyper doesn't concern itself with things like routing, authentication, state management, template rendering, static file hosting and so on, which Rocket provides. Hyper is only focused on being a good implementation of the HTTP protocol and serving as a base for higher level libraries and applications. You could use Hyper to build a framework like Rocket - though AFAIK Rocket uses its own HTTP implementation. It's kind of like that difference between Photoshop and libpng.
- sam0x17 3y agoRocket uses hyper for it's HTTP
- deleted 3y ago[deleted]
- darrell_roberts 3y agoIt is built using hyper. Hyper is a dependency: https://github.com/SergioBenitez/Rocket/blob/v0.5-rc/core/http/Cargo.toml#L53 https://github.com/SergioBenitez/Rocket/blob/v0.5-rc/core/ht...
- satvikpendem 3y agoOthers have explained the difference, but I wouldn't use Rocket at all, to be honest. It's barely maintained, the maintainer left for some time without telling anyone and without giving any repository access to other contributors, and it has a bus factor of one. I'd recommend Axum since it's backed by the Tokio contributors which makes it much less likely to be unmaintained later on.
- simonhamp 3y agoThere was a release just a couple of months ago - that doesn't seem to be "barely maintained"
- satvikpendem 3y agoThe 0.5 release is literally years in the making and there's no indication that it'll be done any time soon. The creator said they finished most of it in a 2020 comment and it's still not done.