Skip to content

Commit 11b5355

Browse files
committed
Upgrade axum to 0.8
1 parent 34a553c commit 11b5355

File tree

21 files changed

+108
-163
lines changed

21 files changed

+108
-163
lines changed

Cargo.lock

Lines changed: 40 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ oauth2-types = { path = "./crates/oauth2-types/", version = "=0.13.0-rc.1" }
5757

5858
# OpenAPI schema generation and validation
5959
[workspace.dependencies.aide]
60-
version = "0.13.5"
61-
features = ["axum", "axum-headers", "macros"]
60+
version = "0.14.0"
61+
features = ["axum", "axum-extra", "axum-json", "axum-query", "macros"]
6262

6363
# GraphQL server
6464
[workspace.dependencies.async-graphql]
@@ -75,11 +75,11 @@ version = "1.0.95"
7575

7676
# HTTP router
7777
[workspace.dependencies.axum]
78-
version = "0.7.9"
78+
version = "0.8.1"
7979

8080
# Extra utilities for Axum
8181
[workspace.dependencies.axum-extra]
82-
version = "0.9.6"
82+
version = "0.10.0"
8383
features = ["cookie-private", "cookie-key-expansion", "typed-header"]
8484

8585
# Constant-time base64
@@ -271,18 +271,18 @@ features = [
271271

272272
# Sentry error tracking
273273
[workspace.dependencies.sentry]
274-
version = "0.34.0"
274+
version = "0.36.0"
275275
default-features = false
276276
features = ["backtrace", "contexts", "panic", "tower", "reqwest"]
277277

278278
# Sentry tower layer
279279
[workspace.dependencies.sentry-tower]
280-
version = "0.34.0"
280+
version = "0.36.0"
281281
features = ["http"]
282282

283283
# Sentry tracing integration
284284
[workspace.dependencies.sentry-tracing]
285-
version = "0.34.0"
285+
version = "0.36.0"
286286

287287
# Serialization and deserialization
288288
[workspace.dependencies.serde]

crates/axum-utils/src/client_authorization.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// Copyright 2024 New Vector Ltd.
1+
// Copyright 2024, 2025 New Vector Ltd.
22
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
33
//
44
// SPDX-License-Identifier: AGPL-3.0-only
55
// Please see LICENSE in the repository root for full details.
66

77
use std::collections::HashMap;
88

9-
use async_trait::async_trait;
109
use axum::{
1110
extract::{
1211
rejection::{FailedToDeserializeForm, FormRejection},
@@ -321,7 +320,6 @@ impl IntoResponse for ClientAuthorizationError {
321320
}
322321
}
323322

324-
#[async_trait]
325323
impl<S, F> FromRequest<S> for ClientAuthorization<F>
326324
where
327325
F: DeserializeOwned,

crates/axum-utils/src/cookies.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 New Vector Ltd.
1+
// Copyright 2024, 2025 New Vector Ltd.
22
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
33
//
44
// SPDX-License-Identifier: AGPL-3.0-only
@@ -8,7 +8,6 @@
88
99
use std::convert::Infallible;
1010

11-
use async_trait::async_trait;
1211
use axum::{
1312
extract::{FromRef, FromRequestParts},
1413
response::{IntoResponseParts, ResponseParts},
@@ -65,7 +64,6 @@ impl CookieManager {
6564
}
6665
}
6766

68-
#[async_trait]
6967
impl<S> FromRequestParts<S> for CookieJar
7068
where
7169
CookieManager: FromRef<S>,

crates/axum-utils/src/user_authorization.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// Copyright 2024 New Vector Ltd.
1+
// Copyright 2024, 2025 New Vector Ltd.
22
// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
33
//
44
// SPDX-License-Identifier: AGPL-3.0-only
55
// Please see LICENSE in the repository root for full details.
66

77
use std::{collections::HashMap, error::Error};
88

9-
use async_trait::async_trait;
109
use axum::{
1110
extract::{
1211
rejection::{FailedToDeserializeForm, FormRejection},
@@ -284,7 +283,6 @@ where
284283
}
285284
}
286285

287-
#[async_trait]
288286
impl<S, F> FromRequest<S> for UserAuthorization<F>
289287
where
290288
F: DeserializeOwned,

0 commit comments

Comments
 (0)