Rocket | hyper | |
---|---|---|
164 | 109 | |
25,228 | 15,333 | |
0.4% | 1.1% | |
7.6 | 8.2 | |
about 2 months ago | 28 days ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Rocket
-
Exploring the top Rust web frameworks
Rocket has evolved into a highly usable, performant framework with active development and over 25k GitHub stars. Here is a simple example of a Rocket server that takes two query parameters and returns a Happy Birthday message:
-
Best Backend Frameworks for 2025: A Developer's Guide to Making the Right Choice
Rocket: Rust's Type-Safe API Builder
-
Rusty Backends
To find answers, we wanted to get our hands dirty with three popular Rust web frameworks including rocket, axum, and actix, and get a feeling for their performance, features, and most importantly the developer experience.
-
How to Set Up a Local Docker Environment with Rust and Rocket
In this post, we'll explore how to set up a local development environment for a Rust web application using the Rocket framework and Docker. The setup includes automatic recompilation and logging whenever you update your code. Here's how it works, step by step.
-
Rocket.rs lightspeed web server
Today we talk about Rocket.rs, a web framework that uses Rust as a backend language. 🚀
-
Rust needs a web framework for lazy developers
I was surprised not to see Rocket (https://rocket.rs/) mentioned among the frameworks the author listed; I haven’t used it myself because I _like_ the more unopinionated axum/actix-web, but as I understand it its goals are much more in the vein of what the author wants in a batteries-included framework.
-
Sponsoring the Rust-based Rocket Web framework
At the bottom of the Rocket web site there are a few sponsors listed Kindness.ai, ohne Makler, 1Password, Signal Insight, and Edwin Olback. There are more sponsors on GitHub sponsors page
-
Top 10 Rusty Repositories for you to start your Open Source Journey
4. Rocket
-
What is the best library to write a SCADA-like application for web?
If you want something simpler/more minimal, you could use https://rocket.rs/ for the backend and handle the front-end however you want.
- Rocket – Simple, Fast, Type-Safe Web Framework for Rust
hyper
-
Exploring the top Rust web frameworks
Gotham is a flexible web framework built for stable Rust that promotes “stability, safety, security, and speed.” It provides async support with the help of Tokio and hyper out of the box.
-
Rusty Backends
In particular the last point is what sets axum apart from other frameworks axum doesn't have its own middleware system but instead uses tower::Service. This means axum gets timeouts, tracing, compression, authorization, and more, for free. It also enables you to share middleware with applications written using hyper or tonic.
-
Ropey – A UTF8 text rope for manipulating and editing large texts. in Rust
The bytes crate does support what ComputerGuru asked for via the Buf trait. The trait can be implemented over a sequence of buffers but still provides functions that are common with single buffers. In fact the hyper crate uses the trait in exactly this way - it has an internal type that is a VecDeque of chunks but also implements the Buf trait.
https://docs.rs/bytes/1.9.0/bytes/buf/trait.Buf.html
https://github.com/hyperium/hyper/blob/3817a79b213f840302d7e...
-
Curl removes experimental HTTP back end in Rust
> While not really the target audience for either language, I would prefer zig's crashing behavior to hyper using unsafe evaluations of macros as an example.
> https://github.com/hyperium/hyper/blob/30f2961e89eb306780d85...
This looks basically like a port of something like Kotlin or C#'s ?. operator - the macro checks whether the pointer is null, returns err if it is, and dereferences the pointer otherwise. The part highlighted in the link looks like it's part of the macro implementation - there don't seem to be any "direct" uses of that particular rule in calling code and it's only invoked via the other rules in that macro definition. I think that should make that bit null-safe at least.
Lifetime safety might be a bit trickier, especially since that bit is part of hyper's C API so idk if there's anything Rust (or Zig, for that matter) could do to ensure the pointer is still valid when dereferenced.
-
Build Lightning-Fast Data Processing in Rust: From Single Thread to Parallel Performance
Hyper Crate
-
Writing Secure Go Code
I'd point out that one advantage Go has over Rust in terms of security are the coverage of standard libraries. Go has great support for HTTP clients/servers, cryptography primitives, SSH, SQL, JSON, secure RNG, etc. all in officially maintained standard libraries. The Rust ecosystem has some standards here but the most widely used HTTP client, just as an example, is mostly maintained by one guy[1]. I think that adds considerable security risk vs Go's net/http.
1. https://github.com/hyperium/hyper/graphs/contributors
-
Replacing Nginx with Axum
After I read a bit about axum [1], it says it's a relatively thin wrapper on top of hyper [2], a fast and correct HTTP library.
In other words, what can be done with NGINX, it can be achieved with axum (assuming you know Rust).
It looks interesting, I'm not going to lie!
[1] https://github.com/tokio-rs/axum
[2] https://crates.io/crates/hyper
-
Combining Node.js with Async Rust for remarkable performance
A high-performance runtime, with a multi-threaded, asynchronous event loop written in Rust (using Tokio and Hyper).
-
hyper (Rust) upgrade to v1: Higher-level Server / Client were removed
Its core dependencies is hyper, "a protective and efficient HTTP library for all" which is rather low-level.
-
hyper (Rust) upgrade to v1: Body became Trait
Mocking helper to develop microservices and APIs. hyper-based HTTP server generating REST responses containing JSON ones. Written in Rust.
What are some alternatives?
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
reqwest - An easy and powerful Rust HTTP Client
loco - 🚂 🦀 The one-person framework for Rust for side-projects and startups
yew - Rust / Wasm framework for creating reliable and efficient web applications
ureq - A simple, safe HTTP client