Update axum from 0.7 to 0.8 version
Some checks failed
CI / clippy (push) Failing after 2s
CI / codespell (Book) (push) Failing after 1s
CI / rustfmt (push) Failing after 1s
CI / bench (push) Failing after 1s
CI / feature (juniper, <none>) (push) Failing after 1s
CI / feature (juniper, anyhow) (push) Failing after 1s
CI / feature (juniper, anyhow,backtrace) (push) Failing after 1s
CI / feature (juniper, bigdecimal) (push) Failing after 1s
CI / feature (juniper, bson) (push) Failing after 1s
CI / feature (juniper, chrono) (push) Failing after 1s
CI / feature (juniper, chrono-clock) (push) Failing after 1s
CI / feature (juniper, chrono-tz) (push) Failing after 1s
CI / feature (juniper, expose-test-schema) (push) Failing after 1s
CI / feature (juniper, jiff) (push) Failing after 1s
CI / feature (juniper, rust_decimal) (push) Failing after 1s
CI / feature (juniper, schema-language) (push) Failing after 1s
CI / feature (juniper, time) (push) Failing after 1s
CI / feature (juniper, url) (push) Failing after 1s
CI / feature (juniper, uuid) (push) Failing after 1s
CI / feature (juniper_actix, <none>) (push) Failing after 1s
CI / feature (juniper_actix, subscriptions) (push) Failing after 1s
CI / feature (juniper_axum, <none>) (push) Failing after 1s
CI / feature (juniper_axum, subscriptions) (push) Failing after 1s
CI / feature (juniper_graphql_ws, graphql-transport-ws) (push) Failing after 1s
CI / feature (juniper_graphql_ws, graphql-ws) (push) Failing after 1s
CI / feature (juniper_warp, <none>) (push) Failing after 1s
CI / feature (juniper_warp, subscriptions) (push) Failing after 1s
CI / check (package) (push) Has been skipped
CI / test (juniper, ubuntu, beta) (push) Failing after 1s
CI / test (juniper, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_actix, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_actix, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_actix, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_axum, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_axum, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_axum, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_codegen, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_codegen, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_codegen, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_codegen_tests, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_graphql_ws, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_graphql_ws, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_graphql_ws, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_hyper, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_hyper, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_hyper, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_integration_tests, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_integration_tests, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_integration_tests, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_rocket, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_rocket, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_rocket, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_subscriptions, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_subscriptions, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_subscriptions, ubuntu, stable) (push) Failing after 1s
CI / test (juniper_warp, ubuntu, beta) (push) Failing after 1s
CI / test (juniper_warp, ubuntu, nightly) (push) Failing after 1s
CI / test (juniper_warp, ubuntu, stable) (push) Failing after 1s
CI / wasm (juniper, wasm32-unknown-unknown, beta) (push) Failing after 1s
CI / wasm (juniper, wasm32-unknown-unknown, nightly) (push) Failing after 1s
CI / wasm (juniper, wasm32-unknown-unknown, stable) (push) Failing after 1s
CI / wasm (juniper, wasm32-wasip1, beta) (push) Failing after 1s
CI / wasm (juniper, wasm32-wasip1, nightly) (push) Failing after 1s
CI / wasm (juniper, wasm32-wasip1, stable) (push) Failing after 1s
CI / wasm (juniper_axum, wasm32-unknown-unknown, beta) (push) Failing after 1s
CI / wasm (juniper_axum, wasm32-unknown-unknown, nightly) (push) Failing after 1s
CI / wasm (juniper_axum, wasm32-unknown-unknown, stable) (push) Failing after 1s
CI / wasm (juniper_axum, wasm32-wasip1, beta) (push) Failing after 1s
CI / wasm (juniper_axum, wasm32-wasip1, nightly) (push) Failing after 1s
CI / wasm (juniper_axum, wasm32-wasip1, stable) (push) Failing after 1s
CI / check (release) (push) Failing after 1s
CI / MSRV (push) Has been cancelled
CI / test (juniper, macOS, beta) (push) Has been cancelled
CI / test (juniper, macOS, nightly) (push) Has been cancelled
CI / test (juniper, macOS, stable) (push) Has been cancelled
CI / test (juniper, windows, beta) (push) Has been cancelled
CI / test (juniper, windows, nightly) (push) Has been cancelled
CI / test (juniper, windows, stable) (push) Has been cancelled
CI / test (juniper_actix, macOS, beta) (push) Has been cancelled
CI / test (juniper_actix, macOS, nightly) (push) Has been cancelled
CI / test (juniper_actix, macOS, stable) (push) Has been cancelled
CI / test (juniper_actix, windows, beta) (push) Has been cancelled
CI / test (juniper_actix, windows, nightly) (push) Has been cancelled
CI / test (juniper_actix, windows, stable) (push) Has been cancelled
CI / test (juniper_axum, macOS, beta) (push) Has been cancelled
CI / test (juniper_axum, macOS, nightly) (push) Has been cancelled
CI / test (juniper_axum, macOS, stable) (push) Has been cancelled
CI / test (juniper_axum, windows, beta) (push) Has been cancelled
CI / test (juniper_axum, windows, nightly) (push) Has been cancelled
CI / test (juniper_axum, windows, stable) (push) Has been cancelled
CI / test (juniper_codegen, macOS, beta) (push) Has been cancelled
CI / test (juniper_codegen, macOS, nightly) (push) Has been cancelled
CI / test (juniper_codegen, macOS, stable) (push) Has been cancelled
CI / test (juniper_codegen, windows, beta) (push) Has been cancelled
CI / test (juniper_codegen, windows, nightly) (push) Has been cancelled
CI / test (juniper_codegen, windows, stable) (push) Has been cancelled
CI / test (juniper_graphql_ws, macOS, beta) (push) Has been cancelled
CI / test (juniper_graphql_ws, macOS, nightly) (push) Has been cancelled
CI / test (juniper_graphql_ws, macOS, stable) (push) Has been cancelled
CI / test (juniper_graphql_ws, windows, beta) (push) Has been cancelled
CI / test (juniper_graphql_ws, windows, nightly) (push) Has been cancelled
CI / test (juniper_graphql_ws, windows, stable) (push) Has been cancelled
CI / test (juniper_hyper, macOS, beta) (push) Has been cancelled
CI / test (juniper_hyper, macOS, nightly) (push) Has been cancelled
CI / test (juniper_hyper, macOS, stable) (push) Has been cancelled
CI / test (juniper_hyper, windows, beta) (push) Has been cancelled
CI / test (juniper_hyper, windows, nightly) (push) Has been cancelled
CI / test (juniper_hyper, windows, stable) (push) Has been cancelled
CI / test (juniper_integration_tests, macOS, beta) (push) Has been cancelled
CI / test (juniper_integration_tests, macOS, nightly) (push) Has been cancelled
CI / test (juniper_integration_tests, macOS, stable) (push) Has been cancelled
CI / test (juniper_integration_tests, windows, beta) (push) Has been cancelled
CI / test (juniper_integration_tests, windows, nightly) (push) Has been cancelled
CI / test (juniper_integration_tests, windows, stable) (push) Has been cancelled
CI / test (juniper_rocket, macOS, beta) (push) Has been cancelled
CI / test (juniper_rocket, macOS, nightly) (push) Has been cancelled
CI / test (juniper_rocket, macOS, stable) (push) Has been cancelled
CI / test (juniper_rocket, windows, beta) (push) Has been cancelled
CI / test (juniper_rocket, windows, nightly) (push) Has been cancelled
CI / test (juniper_rocket, windows, stable) (push) Has been cancelled
CI / test (juniper_subscriptions, macOS, beta) (push) Has been cancelled
CI / test (juniper_subscriptions, macOS, nightly) (push) Has been cancelled
CI / test (juniper_subscriptions, macOS, stable) (push) Has been cancelled
CI / test (juniper_subscriptions, windows, beta) (push) Has been cancelled
CI / test (juniper_subscriptions, windows, nightly) (push) Has been cancelled
CI / test (juniper_subscriptions, windows, stable) (push) Has been cancelled
CI / test (juniper_warp, macOS, beta) (push) Has been cancelled
CI / test (juniper_warp, macOS, nightly) (push) Has been cancelled
CI / test (juniper_warp, macOS, stable) (push) Has been cancelled
CI / test (juniper_warp, windows, beta) (push) Has been cancelled
CI / test (juniper_warp, windows, nightly) (push) Has been cancelled
CI / test (juniper_warp, windows, stable) (push) Has been cancelled
CI / test (Book) (push) Has been cancelled
CI / pr (push) Has been cancelled
CI / publish (crates.io) (push) Has been cancelled
CI / release (GitHub) (push) Has been cancelled
CI / deploy (Book) (push) Has been cancelled

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2025-01-04 12:48:23 -06:00
parent 5bda80ed52
commit 203ff0a6e8
No known key found for this signature in database
3 changed files with 4 additions and 6 deletions

View file

@ -25,7 +25,7 @@ rustdoc-args = ["--cfg", "docsrs"]
subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"] subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"]
[dependencies] [dependencies]
axum = { version = "0.7", features = ["json", "query"], default-features = false } axum = { version = "0.8", features = ["json", "query"], default-features = false }
futures = { version = "0.3.22", optional = true } futures = { version = "0.3.22", optional = true }
juniper = { version = "0.16", path = "../juniper", default-features = false } juniper = { version = "0.16", path = "../juniper", default-features = false }
juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", features = ["graphql-transport-ws"] } juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", features = ["graphql-transport-ws"] }
@ -38,7 +38,7 @@ bytes = "1.2"
[dev-dependencies] [dev-dependencies]
anyhow = "1.0" anyhow = "1.0"
axum = { version = "0.7", features = ["http1", "macros", "tokio"] } axum = { version = "0.8", features = ["http1", "macros", "tokio"] }
futures = "0.3.22" futures = "0.3.22"
juniper = { version = "0.16", path = "../juniper", features = ["expose-test-schema"] } juniper = { version = "0.16", path = "../juniper", features = ["expose-test-schema"] }
tokio = { version = "1.20", features = ["macros", "net", "rt-multi-thread", "time"] } tokio = { version = "1.20", features = ["macros", "net", "rt-multi-thread", "time"] }

View file

@ -3,7 +3,6 @@
use std::fmt; use std::fmt;
use axum::{ use axum::{
async_trait,
body::Body, body::Body,
extract::{FromRequest, FromRequestParts, Query}, extract::{FromRequest, FromRequestParts, Query},
http::{header, HeaderValue, Method, Request, StatusCode}, http::{header, HeaderValue, Method, Request, StatusCode},
@ -70,7 +69,6 @@ pub struct JuniperRequest<S = DefaultScalarValue>(pub GraphQLBatchRequest<S>)
where where
S: ScalarValue; S: ScalarValue;
#[async_trait]
impl<S, State> FromRequest<State> for JuniperRequest<S> impl<S, State> FromRequest<State> for JuniperRequest<S>
where where
S: ScalarValue, S: ScalarValue,

View file

@ -488,7 +488,7 @@ where
Ok(match output { Ok(match output {
graphql_transport_ws::Output::Message(msg) => { graphql_transport_ws::Output::Message(msg) => {
serde_json::to_string(&msg) serde_json::to_string(&msg)
.map(ws::Message::Text) .map(|s| ws::Message::Text(s.into()))
.unwrap_or_else(|e| { .unwrap_or_else(|e| {
ws::Message::Close(Some(ws::CloseFrame { ws::Message::Close(Some(ws::CloseFrame {
code: 1011, // CloseCode::Error code: 1011, // CloseCode::Error
@ -618,7 +618,7 @@ where
let output = s_rx let output = s_rx
.map(|msg| { .map(|msg| {
Ok(serde_json::to_string(&msg) Ok(serde_json::to_string(&msg)
.map(ws::Message::Text) .map(|s| ws::Message::Text(s.into()))
.unwrap_or_else(|e| { .unwrap_or_else(|e| {
ws::Message::Close(Some(ws::CloseFrame { ws::Message::Close(Some(ws::CloseFrame {
code: 1011, // CloseCode::Error code: 1011, // CloseCode::Error