Skip to content

Commit 13a8071

Browse files
author
Joe Grund
committed
Bump juniper_axum crate to axum 0.8
Signed-off-by: Joe Grund <[email protected]>
1 parent a925ccb commit 13a8071

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

juniper_axum/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rustdoc-args = ["--cfg", "docsrs"]
2525
subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"]
2626

2727
[dependencies]
28-
axum = { version = "0.7", features = ["json", "query"], default-features = false }
28+
axum = { version = "=0.8.1", features = ["json", "query"], default-features = false }
2929
futures = { version = "0.3.22", optional = true }
3030
juniper = { version = "0.16", path = "../juniper", default-features = false }
3131
juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", features = ["graphql-transport-ws"] }
@@ -38,7 +38,7 @@ bytes = "1.2"
3838

3939
[dev-dependencies]
4040
anyhow = "1.0"
41-
axum = { version = "0.7", features = ["http1", "macros", "tokio"] }
41+
axum = { version = "0.8", features = ["http1", "macros", "tokio"] }
4242
futures = "0.3.22"
4343
juniper = { version = "0.16", path = "../juniper", features = ["expose-test-schema"] }
4444
tokio = { version = "1.20", features = ["macros", "net", "rt-multi-thread", "time"] }

juniper_axum/src/extract.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use std::fmt;
44

55
use axum::{
6-
async_trait,
76
body::Body,
87
extract::{FromRequest, FromRequestParts, Query},
98
http::{header, HeaderValue, Method, Request, StatusCode},
@@ -70,7 +69,6 @@ pub struct JuniperRequest<S = DefaultScalarValue>(pub GraphQLBatchRequest<S>)
7069
where
7170
S: ScalarValue;
7271

73-
#[async_trait]
7472
impl<S, State> FromRequest<State> for JuniperRequest<S>
7573
where
7674
S: ScalarValue,

0 commit comments

Comments
 (0)