unit icon indicating copy to clipboard operation
unit copied to clipboard

CLI: Upgrade Hyper version.

Open avahahn opened this issue 1 year ago • 0 comments

The Bollard library we use to integrate with docker leverages Hyper v1. The OpenAPI client code we have (both unit-openapi and in unit-client-sdk) leverages Hyper v0. We currently include both at build time, which leads to more space used and longer builds.

From https://github.com/nginx/unit/pull/1241:

Regrettably for NOW we do need both versions. The good news is that the last version of v0 is fairly recent and I get the impression it is still being supported inline with v1. We should make it a priority to migrate to the newest version of Hyper when the openapi generator supports it. In the meantime we will have some extra build dependencies.

Further reading: https://hyper.rs/guides/1/upgrading/

NOTE: We are currently blocked on waiting for the OpenAPI generator to support the latest Hyper: https://github.com/OpenAPITools/openapi-generator/issues/17876

avahahn avatar May 03 '24 00:05 avahahn