Axum and tower are deprecating function which will be removed in the next release.
After running cargo update the build shows the following warnings
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:18:27
|
18 | use axum_extra::extract::{Host, WithRejection};
| ^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:23:35
|
23 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:23:12
|
23 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:35:19
|
35 | ApiError, Host, OriginalUri, Query, Response, UseApi, WithRejection, resource_response,
| ^^^^
warning: use of deprecated struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:39:39
|
39 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:39:16
|
39 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:51:23
|
51 | ApiError, Host, OriginalUri, Query, Response, UseApi, WithRejection, resource_response,
| ^^^^
warning: use of deprecated struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:55:43
|
55 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:55:20
|
55 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/operations.rs:25:35
|
25 | use axum_extra::extract::{Host, WithRejection};
| ^^^^
warning: use of deprecated struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/operations.rs:75:43
|
75 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/operations.rs:75:20
|
75 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/operations.rs:332:47
|
332 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/operations.rs:332:24
|
332 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/x_sovd2uds_bulk_data.rs:18:27
|
18 | use axum_extra::extract::{Host, WithRejection};
| ^^^^
warning: use of deprecated struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/x_sovd2uds_bulk_data.rs:27:35
|
27 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/x_sovd2uds_bulk_data.rs:27:12
|
27 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/x_sovd2uds_download.rs:18:27
|
18 | use axum_extra::extract::{Host, WithRejection};
| ^^^^
warning: use of deprecated struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/x_sovd2uds_download.rs:86:35
|
86 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated tuple struct `axum_extra::extract::Host`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/x_sovd2uds_download.rs:86:12
|
86 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated field `axum_extra::extract::Host::0`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:23:17
|
23 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated field `axum_extra::extract::Host::0`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:39:21
|
39 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated field `axum_extra::extract::Host::0`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/apps.rs:55:25
|
55 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated field `axum_extra::extract::Host::0`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/operations.rs:75:25
|
75 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated field `axum_extra::extract::Host::0`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/operations.rs:332:29
|
332 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated field `axum_extra::extract::Host::0`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/x_sovd2uds_bulk_data.rs:27:17
|
27 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated field `axum_extra::extract::Host::0`: will be removed in the next version; see https://github.com/tokio-rs/axum/issues/3442
--> cda-sovd/src/sovd/components/ecu/x_sovd2uds_download.rs:86:17
|
86 | UseApi(Host(host), _): UseApi<Host, String>,
| ^^^^
warning: use of deprecated associated function `tower_http::timeout::TimeoutLayer::new`: Use `TimeoutLayer::with_status_code` instead
--> cda-sovd/src/dynamic_router.rs:40:55
|
40 | .layer(tower_http::timeout::TimeoutLayer::new(
| ^^^
Compiling cda-health v0.1.0 (/private/tmp/classic-diagnostic-adapter/cda-hea
(Optional) Add any screenshots, related issues, or architectural concerns.
Description
Axum and tower are deprecating function which will be removed in the next release.
After running
cargo updatethe build shows the following warningsMotivation
Keep up to date with dependencies, prevent using depracted functions
Proposed Solution
Replace the calls with appropiate alternatives
Additional Context
(Optional) Add any screenshots, related issues, or architectural concerns.
Important
Make sure to link this issue with the PR for your improvement.