hyper-tls
hyper-rustls
hyper-tls | hyper-rustls | |
---|---|---|
2 | 4 | |
182 | 292 | |
1.6% | 1.0% | |
5.3 | 7.9 | |
5 months ago | 10 days ago | |
Rust | Rust | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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-tls
-
Any crates for serving Hyper over TLS?
My bad. It does look like they're open to adding support for server: https://github.com/hyperium/hyper-tls/issues/25, though someone's got to do the hard part. You mention you've already implemented something. Would it be suitable for a PR?
-
How to serve https with hyper?
I checked in warp and they have a bunch of custom code for manually accepting TLS connections and implementing the various traits that hyper uses. I can see an issue for porting this code into hyper-tls but there has been no movement since March 2020.
hyper-rustls
-
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)
What are some alternatives?
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
hyper-router - Simple routing middleware for rust HTTP library hyper.
rustls - A modern TLS library in Rust
routerify - A lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.rs
warp - A super-easy, composable, web server framework for warp speeds.
hyper - An HTTP library for Rust
Warp - Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
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