Skip to content

Commit 879eb6a

Browse files
authored
Merge pull request #3893 from element-hq/quenting/axum-0.8
Upgrade axum to 0.8
2 parents c376790 + 11b5355 commit 879eb6a

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
@@ -58,8 +58,8 @@ syn2mas = { path = "./crates/syn2mas", version = "=0.13.0-rc.1" }
5858

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

6464
# GraphQL server
6565
[workspace.dependencies.async-graphql]
@@ -79,11 +79,11 @@ version = "1.0.95"
7979

8080
# HTTP router
8181
[workspace.dependencies.axum]
82-
version = "0.7.9"
82+
version = "0.8.1"
8383

8484
# Extra utilities for Axum
8585
[workspace.dependencies.axum-extra]
86-
version = "0.9.6"
86+
version = "0.10.0"
8787
features = ["cookie-private", "cookie-key-expansion", "typed-header"]
8888

8989
# Constant-time base64
@@ -279,18 +279,18 @@ features = [
279279

280280
# Sentry error tracking
281281
[workspace.dependencies.sentry]
282-
version = "0.34.0"
282+
version = "0.36.0"
283283
default-features = false
284284
features = ["backtrace", "contexts", "panic", "tower", "reqwest"]
285285

286286
# Sentry tower layer
287287
[workspace.dependencies.sentry-tower]
288-
version = "0.34.0"
288+
version = "0.36.0"
289289
features = ["http"]
290290

291291
# Sentry tracing integration
292292
[workspace.dependencies.sentry-tracing]
293-
version = "0.34.0"
293+
version = "0.36.0"
294294

295295
# Serialization and deserialization
296296
[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)