Skip to content

fix(deps): update rust crate axum to 0.8.0 #69

fix(deps): update rust crate axum to 0.8.0

fix(deps): update rust crate axum to 0.8.0 #69

Triggered via push January 1, 2025 12:11
Status Success
Total duration 17s
Artifacts

checks.yaml

on: push
license
8s
license
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
type annotations needed: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/macros/try_join.rs#L208
error[E0282]: type annotations needed --> src/http/mod.rs:71:25 | 71 | if let Err(e) = tokio::try_join!(app, metrics) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type | = note: this error originates in the macro `$crate::try_join` which comes from the expansion of the macro `tokio::try_join` (in Nightly builds, run with -Z macro-backtrace for more info)
type annotations needed: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/macros/try_join.rs#L187
error[E0282]: type annotations needed --> src/http/mod.rs:71:25 | 71 | if let Err(e) = tokio::try_join!(app, metrics) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type | = note: this error originates in the macro `$crate::try_join` which comes from the expansion of the macro `tokio::try_join` (in Nightly builds, run with -Z macro-backtrace for more info)
type annotations needed: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/macros/try_join.rs#L186
error[E0282]: type annotations needed --> src/http/mod.rs:71:25 | 71 | if let Err(e) = tokio::try_join!(app, metrics) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type | = note: this error originates in the macro `$crate::try_join` which comes from the expansion of the macro `tokio::try_join` (in Nightly builds, run with -Z macro-backtrace for more info)
type annotations needed: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.42.0/src/macros/try_join.rs#L184
error[E0282]: type annotations needed --> src/http/mod.rs:71:25 | 71 | if let Err(e) = tokio::try_join!(app, metrics) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type | = note: this error originates in the macro `$crate::try_join` which comes from the expansion of the macro `tokio::try_join` (in Nightly builds, run with -Z macro-backtrace for more info)
the trait bound `tower_http::trace::Trace<axum::routing::Route, tower_http::classify::SharedClassifier<tower_http::classify::ServerErrorsAsFailures>>: tower::Service<axum::http::Request<axum::body::Body>>` is not satisfied: src/http/mod.rs#L45
error[E0277]: the trait bound `tower_http::trace::Trace<axum::routing::Route, tower_http::classify::SharedClassifier<tower_http::classify::ServerErrorsAsFailures>>: tower::Service<axum::http::Request<axum::body::Body>>` is not satisfied --> src/http/mod.rs:45:13 | 44 | .layer( | ----- required by a bound introduced by this call 45 | / TraceLayer::new_for_http().make_span_with( 46 | | DefaultMakeSpan::new() 47 | | .level(Level::TRACE) 48 | | .include_headers(true), 49 | | ), | |_____________^ the trait `tower::Service<axum::http::Request<axum::body::Body>>` is not implemented for `tower_http::trace::Trace<axum::routing::Route, tower_http::classify::SharedClassifier<tower_http::classify::ServerErrorsAsFailures>>` | = help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `tower_http::trace::Trace<S, M, MakeSpanT, OnRequestT, OnResponseT, OnBodyChunkT, OnEosT, OnFailureT>` note: the method call chain might not have had the expected associated types --> src/http/mod.rs:45:40 | 45 | TraceLayer::new_for_http().make_span_with( | _____________--------------------------_^ | | | | | this expression has type `TraceLayer<SharedClassifier<ServerErrorsAsFailures>>` 46 | | DefaultMakeSpan::new() 47 | | .level(Level::TRACE) 48 | | .include_headers(true), 49 | | ), | |_____________^ `Layer::Service` is `Trace<_, SharedClassifier<ServerErrorsAsFailures>>` here note: required by a bound in `axum::Router::<S>::layer` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.8.0/src/routing/mod.rs:300:21 | 297 | pub fn layer<L>(self, layer: L) -> Router<S> | ----- required by a bound in this associated function ... 300 | L::Service: Service<Request> + Clone + Send + Sync + 'static, | ^^^^^^^^^^^^^^^^ required by this bound in `Router::<S>::layer`
mismatched types: src/http/metrics.rs#L36
error[E0308]: mismatched types --> src/http/metrics.rs:36:25 | 31 | pub async fn middleware<B>(req: Request<B>, next: Next<B>) -> Result<Response, StatusCode> { | - found this type parameter ... 36 | let resp = next.run(req).await; | --- ^^^ expected `Request<Body>`, found `Request<B>` | | | arguments to this method are incorrect | = note: expected struct `axum::http::Request<axum::body::Body>` found struct `axum::http::Request<B>` note: method defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.8.0/src/middleware/from_fn.rs:345:18 | 345 | pub async fn run(mut self, req: Request) -> Response { | ^^^
struct takes 0 generic arguments but 1 generic argument was supplied: src/http/metrics.rs#L31
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied --> src/http/metrics.rs:31:51 | 31 | pub async fn middleware<B>(req: Request<B>, next: Next<B>) -> Result<Response, StatusCode> { | ^^^^--- help: remove the unnecessary generics | | | expected 0 generic arguments | note: struct defined here, with 0 generic parameters --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.8.0/src/middleware/from_fn.rs:339:12 | 339 | pub struct Next { | ^^^^
unresolved import `axum::Server`: src/http/mod.rs#L11
error[E0432]: unresolved import `axum::Server` --> src/http/mod.rs:11:59 | 11 | use axum::{http::StatusCode, middleware, routing, Router, Server}; | ^^^^^^ | | | no `Server` in the root | help: a similar name exists in the module: `serve`
license
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636