-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to hyper 1.x #340
Comments
The reason why we still rely on 0.14 (maintained) and we didn't start yet migrating is because there are dependencies used by SWS no ready for Hyper v1 like our fork of the Additionally, we do not still have an estimation of the effort necessary to migrate our modules. So if that could at least be known then we could have a better idea about the implications if any and plan the migration task(s). But certainly, we know that migrate to Hyper v1 is something that we have to do at some point, so why not to get started with it If you have ideas or want to help let us know. |
I see, I assumed this was merely a matter of finding the time. Unfortunately, I am no help at creating a migration plan – I don’t have any experience with hyper, so I can only figure things out by trying. |
@joseluisq, what is the reason for this being a fork? It’s quite difficult to figure out the changes compared to upstream, with upstream changes being merged into it. However, it is my understanding that your fork is an improved version of hyperium/headers#70. And that pull request is merely adding new types, not changing any of the module internals. From the look of it, these types could also be added to a separate module like |
I went through the dependencies. #354 should take care of the |
@palant it was just our first attempt back in the day to support compression on demand via the The idea of extracting the code and keeping it directly in SWS is also fine to me. That should be a step forward to help us to migrate to hyper v1. |
Great! then I will check #354. We have to check if upgrading to Also, see if we need https://github.com/hyperium/hyper-util/tree/master, because as far as I know some utilities were moved to that crate. |
I’ve created a hyper-upgrade branch on my fork. For now I only changed dependencies and made some trivial adjustments, just to see what kind of errors come up. Most of the errors are unsurprisingly “unresolved import The rest of them are related to server setup, it changed drastically. There is the unsurprising “unresolved import |
Most of the time, generics can be used to avoid spelling out body types, see e642a2b. There are very few pieces of code actually working with response bodies and none working with request bodies. In fact, these generics can be used already and will make migration easier. |
Search for duplicate feature request
Feature scope
Improve existing functionality
Feature request related to a problem
No response
Describe the solution you'd like
I’m trying to use this within another server solution, and the outdated libraries make it somewhat more complicated than necessary. Is there a reason to use hyper 0.14 rather than 1.2? If not, I may be able to create a pull request. The changes to
Body
andServer
should be relevant here.Describe alternatives you've considered
Obviously, hyper 0.14 is still supported. I merely have to juggle different versions of
http::Request
and such within the application.Build target
All targets
Pull requests so far
The text was updated successfully, but these errors were encountered: