nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.25k stars 321 forks source link

CLI: Upgrade Hyper version. #1245

Open avahahn opened 1 month ago

avahahn commented 1 month ago

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