hyper-rustls
Integration between hyper HTTP library and rustls TLS stack (by rustls)
routerify
A lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.rs (by routerify)
hyper-rustls | routerify | |
---|---|---|
4 | 7 | |
292 | 385 | |
1.7% | 1.0% | |
7.9 | 0.0 | |
11 days ago | 3 months ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
hyper-rustls
Posts with mentions or reviews of hyper-rustls.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-17.
-
The HTTP crash course nobody asked for
Ah, that's probably it! You can look at how hyper-rustls does it - they just skip/ignore invalid roots, and if that still doesn't work, you can always switch to the webpki-roots crate (also shown in the hyper-rustls sample linked above).
-
Minimum Viable TLS Config
Today, I was able to somewhat piece together a solution and get hyper.rs to pay nice with TLS and accept a https connection using this example: https://github.com/rustls/hyper-rustls/blob/main/examples/server.rs . The problem that I'm running into now is that this solution doesn't play nice with the rest of the hyper.rs ecosystem, namely routerify.
-
How to serve https with hyper?
I saw the example in hyper_rustls, but I was just surprised that there was no actual library code for it - I guess they didn't want to commit to an API yet? (Also there is an open PR to replace that example with the code from warp)
routerify
Posts with mentions or reviews of routerify.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-20.
-
State of Rust for web backends
You can checkout an example AWS Lambda entrypoint for an HTTP library Routerify (very similar to Axum) here: https://github.com/routerify/routerify/blob/master/examples/aws_lambda.rs
-
What is the way to use a router with Hyper/Tokio?
https://github.com/routerify/routerify is an easy to use router built on Hyper.
-
New Tokio blog post: Announcing Axum - Web framework that focuses on ergonomics and modularity
Looks interesting. How does this compare to routerify?
-
New Rust Programmer: Question about Web Serving
I'd also recommend routerify. It is a small layer on top of hyper but it makes writing HTTP servers quite enjoyable. My colleague dhruvasagar is creating a series of screencasts for building a URL shortener with Rust. Do check his series.
-
Announce routerify-lite
Routerify-lite is a simplified but faster version of Routerify.
-
Does rust have an http router that can be used inside an aws lambda function?
I haven't deployed Rust on lambda yet. However, I was meaning to experiment with routerify in the coming weeks. It has an example for AWS lambda as well. Let me know how it works out.
- Announcing Routerify v2: a lightweight http router built on hyper
What are some alternatives?
When comparing hyper-rustls and routerify you can also consider the following projects:
hyper-tls
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
hyper-router - Simple routing middleware for rust HTTP library hyper.
rust-web-framework-comparison - A comparison of some web frameworks and libs written in Rust
hyper - An HTTP library for Rust
warp - A super-easy, composable, web server framework for warp speeds.
another-rust-load-balancer - A load balancer with support for different middlewares and load balancing strategies, based on hyper and tokio
routerify-lite - A simplified but faster version of Routerify
Rocket - A web framework for Rust.
dropshot - expose REST APIs from a Rust program
hyper-rustls vs hyper-tls
routerify vs axum
hyper-rustls vs hyper-router
routerify vs rust-web-framework-comparison
hyper-rustls vs hyper
routerify vs warp
hyper-rustls vs another-rust-load-balancer
routerify vs hyper-router
hyper-rustls vs routerify-lite
routerify vs routerify-lite
routerify vs Rocket
routerify vs dropshot