-
Notifications
You must be signed in to change notification settings - Fork 72
Upgrade hyper, hyper-rustls to latest versions #3360
Description
Is your refactoring request related to a problem? Please describe.
To be able to upgrade to the latest version of rustls, which is 0.23 at the time of writing, we need to upgrade its dependent hyper-rustls, which in turns requires upgrading its dependent hyper.
We added hyper@0.14, but it's had a major update since and currently sits at 1.5.2. As such there were some breaking changes in the API, but I wouldn't expect migrating to be particularly difficult. A migration guide is available.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
As part of HSM work, it is necessary to upgrade rustls to at least 0.22. However because some dependencies like axum-server don't support 0.22 and upgrade straight to 0.23, we need to either keep two versions of rustls and split certificate crate around these two versions (#3359) or we can use a yet unreleased version of rumqttc which supports rustls@0.23 and do necessary upgrades for other crates. I view the 2nd solution as preferable as we'll probably have to upgrade these dependencies anyway in the future.