opendut icon indicating copy to clipboard operation
opendut copied to clipboard

Axum 0.7 update

Open kKdH opened this issue 1 year ago • 7 comments

There is a new version of axum (our web application framework), we would like to update to. The update relates also to hyper, http, and reqwest which should be updated too. Due to several breaking changes the update is more complex.

kKdH avatar Jan 15 '24 15:01 kKdH

It looks like most conflicts happen, because the reqwest library isn't yet ready for using hyper and http 1.0: https://github.com/seanmonstar/reqwest/issues/2039

Trying to upgrade axum or hyper individually, forces those to use a new version of the http library, incompatible with what reqwest supports (0.2).

mbfm avatar Jan 16 '24 14:01 mbfm

The tonic library is not yet ready either: https://github.com/hyperium/tonic/issues/1579

mbfm avatar Jan 17 '24 12:01 mbfm

reqwest is now ready for upgrade, but tonic is still not ready.

A partial upgrade still fails due to two different versions of the http crate (0.2.12 and 1.1.0) being pulled in as dependencies.

mbfm avatar Apr 22 '24 13:04 mbfm

tonic is now also ready, as of version 0.12.0: https://github.com/hyperium/tonic/releases/tag/v0.12.0

mbfm avatar Jul 12 '24 08:07 mbfm

Upgrade attempted on branch issue-29-hyper-http-upgrade.

OpenTelemetry still seems to not be ready: https://github.com/open-telemetry/opentelemetry-rust/pull/1674

mbfm avatar Jul 12 '24 14:07 mbfm

OpenTelemetry is ready, now waiting for tracing-opentelemetry: https://github.com/tokio-rs/tracing-opentelemetry/issues/154

mbfm avatar Jul 17 '24 08:07 mbfm

tracing-opentelemetry is ready. Struggling with upgrading Axum for our gRPC+HTTP backend. The relevant example has not been updated yet, so might not yet be easily possible: https://github.com/tokio-rs/axum/blob/main/examples/rest-grpc-multiplex/src/main.rs

mbfm avatar Aug 06 '24 10:08 mbfm

reqwest-retry depends on the instant library which had an advisory issued, due to being unmaintained. We cannot upgrade reqwest-retry due to this issue.

mbfm avatar Nov 13 '24 08:11 mbfm

Implemented in 4e8c2e1258e3faa32dacba594e3c164dd1124e9b and following commits.

mbfm avatar Dec 02 '24 16:12 mbfm