Skip to content

Commit

Permalink
Bump juniper_axum crate to axum 0.8
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Grund <jgrund@whamcloud.io>
  • Loading branch information
jgrund committed Jan 1, 2025
1 parent a925ccb commit 13a8071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions juniper_axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rustdoc-args = ["--cfg", "docsrs"]
subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"]

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

[dev-dependencies]
anyhow = "1.0"
axum = { version = "0.7", features = ["http1", "macros", "tokio"] }
axum = { version = "0.8", features = ["http1", "macros", "tokio"] }
futures = "0.3.22"
juniper = { version = "0.16", path = "../juniper", features = ["expose-test-schema"] }
tokio = { version = "1.20", features = ["macros", "net", "rt-multi-thread", "time"] }
Expand Down
2 changes: 0 additions & 2 deletions juniper_axum/src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use std::fmt;

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

#[async_trait]
impl<S, State> FromRequest<State> for JuniperRequest<S>
where
S: ScalarValue,
Expand Down

0 comments on commit 13a8071

Please # to comment.