bump async graphql version (#4687)
This commit is contained in:
parent
4431809711
commit
7ab4d94e93
7 changed files with 55 additions and 142 deletions
129
Cargo.lock
generated
129
Cargo.lock
generated
|
@ -440,12 +440,6 @@ dependencies = [
|
||||||
"term",
|
"term",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "ascii_utils"
|
|
||||||
version = "0.9.3"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "71938f30533e4d95a6d17aa530939da3842c2ab6f4f84b9dae68447e4129f74a"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "assert-json-diff"
|
name = "assert-json-diff"
|
||||||
version = "2.0.2"
|
version = "2.0.2"
|
||||||
|
@ -527,9 +521,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async-graphql"
|
name = "async-graphql"
|
||||||
version = "7.0.7"
|
version = "7.0.9"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2b76aba2f176af685c2229633881a3adeae51f87ae1811781e73910b7001c93e"
|
checksum = "9d37c3e9ba322eb00e9e5e997d58f08e8b6de037325b9367ac59bca8e3cd46af"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-graphql-derive",
|
"async-graphql-derive",
|
||||||
"async-graphql-parser",
|
"async-graphql-parser",
|
||||||
|
@ -538,10 +532,9 @@ dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"base64 0.22.0",
|
"base64 0.22.0",
|
||||||
"bytes",
|
"bytes",
|
||||||
"fast_chemail",
|
|
||||||
"fnv",
|
"fnv",
|
||||||
|
"futures-timer",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"handlebars",
|
|
||||||
"http 1.1.0",
|
"http 1.1.0",
|
||||||
"indexmap 2.2.6",
|
"indexmap 2.2.6",
|
||||||
"mime",
|
"mime",
|
||||||
|
@ -554,15 +547,32 @@ dependencies = [
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"serde_urlencoded",
|
"serde_urlencoded",
|
||||||
"static_assertions_next",
|
"static_assertions_next",
|
||||||
"tempfile",
|
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async-graphql-derive"
|
name = "async-graphql-axum"
|
||||||
version = "7.0.7"
|
version = "7.0.9"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "72e2e26a6b44bc61df3ca8546402cf9204c28e30c06084cc8e75cd5e34d4f150"
|
checksum = "329afc4fc7359f112b7593bc930b788544cedbc97c4fbdf1db21e58704b4b5d0"
|
||||||
|
dependencies = [
|
||||||
|
"async-graphql",
|
||||||
|
"async-trait",
|
||||||
|
"axum 0.7.5",
|
||||||
|
"bytes",
|
||||||
|
"futures-util",
|
||||||
|
"serde_json",
|
||||||
|
"tokio",
|
||||||
|
"tokio-stream",
|
||||||
|
"tokio-util",
|
||||||
|
"tower-service",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "async-graphql-derive"
|
||||||
|
version = "7.0.9"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f1141703c11c6ad4fa9b3b0e1e476dea01dbd18a44db00f949b804afaab2f344"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"Inflector",
|
"Inflector",
|
||||||
"async-graphql-parser",
|
"async-graphql-parser",
|
||||||
|
@ -577,9 +587,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async-graphql-parser"
|
name = "async-graphql-parser"
|
||||||
version = "7.0.7"
|
version = "7.0.9"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f801451484b4977d6fe67b29030f81353cabdcbb754e5a064f39493582dac0cf"
|
checksum = "2f66edcce4c38c18f7eb181fdf561c3d3aa2d644ce7358fc7a928c00a4ffef17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-graphql-value",
|
"async-graphql-value",
|
||||||
"pest",
|
"pest",
|
||||||
|
@ -589,9 +599,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async-graphql-value"
|
name = "async-graphql-value"
|
||||||
version = "7.0.7"
|
version = "7.0.9"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "69117c43c01d81a69890a9f5dd6235f2f027ca8d1ec62d6d3c5e01ca0edb4f2b"
|
checksum = "3b0206011cad065420c27988f17dd7fe201a0e056b20c262209b7bffcd6fa176"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"indexmap 2.2.6",
|
"indexmap 2.2.6",
|
||||||
|
@ -2010,15 +2020,6 @@ dependencies = [
|
||||||
"rand 0.7.3",
|
"rand 0.7.3",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "fast_chemail"
|
|
||||||
version = "0.9.6"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "495a39d30d624c2caabe6312bfead73e7717692b44e0b32df168c275a2e8e9e4"
|
|
||||||
dependencies = [
|
|
||||||
"ascii_utils",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fastrand"
|
name = "fastrand"
|
||||||
version = "2.0.2"
|
version = "2.0.2"
|
||||||
|
@ -2283,6 +2284,12 @@ version = "0.3.30"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"
|
checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "futures-timer"
|
||||||
|
version = "3.0.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-util"
|
name = "futures-util"
|
||||||
version = "0.3.30"
|
version = "0.3.30"
|
||||||
|
@ -2481,20 +2488,6 @@ dependencies = [
|
||||||
"crunchy",
|
"crunchy",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "handlebars"
|
|
||||||
version = "5.1.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "d08485b96a0e6393e9e4d1b8d48cf74ad6c063cd905eb33f42c1ce3f0377539b"
|
|
||||||
dependencies = [
|
|
||||||
"log",
|
|
||||||
"pest",
|
|
||||||
"pest_derive",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
|
||||||
"thiserror",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hash32"
|
name = "hash32"
|
||||||
version = "0.3.1"
|
version = "0.3.1"
|
||||||
|
@ -3962,40 +3955,6 @@ dependencies = [
|
||||||
"ucd-trie",
|
"ucd-trie",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pest_derive"
|
|
||||||
version = "2.7.11"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "2a548d2beca6773b1c244554d36fcf8548a8a58e74156968211567250e48e49a"
|
|
||||||
dependencies = [
|
|
||||||
"pest",
|
|
||||||
"pest_generator",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pest_generator"
|
|
||||||
version = "2.7.11"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "3c93a82e8d145725dcbaf44e5ea887c8a869efdcc28706df2d08c69e17077183"
|
|
||||||
dependencies = [
|
|
||||||
"pest",
|
|
||||||
"pest_meta",
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn 2.0.77",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pest_meta"
|
|
||||||
version = "2.7.11"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "a941429fea7e08bedec25e4f6785b6ffaacc6b755da98df5ef3e7dcf4a124c4f"
|
|
||||||
dependencies = [
|
|
||||||
"once_cell",
|
|
||||||
"pest",
|
|
||||||
"sha2",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "petgraph"
|
name = "petgraph"
|
||||||
version = "0.6.4"
|
version = "0.6.4"
|
||||||
|
@ -5919,6 +5878,7 @@ dependencies = [
|
||||||
"argon2",
|
"argon2",
|
||||||
"assert_fs",
|
"assert_fs",
|
||||||
"async-graphql",
|
"async-graphql",
|
||||||
|
"async-graphql-axum",
|
||||||
"axum 0.7.5",
|
"axum 0.7.5",
|
||||||
"axum-extra",
|
"axum-extra",
|
||||||
"axum-server",
|
"axum-server",
|
||||||
|
@ -5961,7 +5921,6 @@ dependencies = [
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"serial_test",
|
"serial_test",
|
||||||
"surrealdb",
|
"surrealdb",
|
||||||
"surrealdb-async-graphql-axum",
|
|
||||||
"surrealdb-core",
|
"surrealdb-core",
|
||||||
"temp-env",
|
"temp-env",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
|
@ -6041,24 +6000,6 @@ dependencies = [
|
||||||
"ws_stream_wasm",
|
"ws_stream_wasm",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "surrealdb-async-graphql-axum"
|
|
||||||
version = "7.0.7-surrealdb.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "6761517bf15e976c363d9d71ddf7f215e545a8ed787dba52d77b42732cf1a3da"
|
|
||||||
dependencies = [
|
|
||||||
"async-graphql",
|
|
||||||
"async-trait",
|
|
||||||
"axum 0.7.5",
|
|
||||||
"bytes",
|
|
||||||
"futures-util",
|
|
||||||
"serde_json",
|
|
||||||
"tokio",
|
|
||||||
"tokio-stream",
|
|
||||||
"tokio-util",
|
|
||||||
"tower-service",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "surrealdb-core"
|
name = "surrealdb-core"
|
||||||
version = "2.0.0"
|
version = "2.0.0"
|
||||||
|
|
|
@ -54,8 +54,8 @@ inherits = "dev"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
argon2 = "0.5.2"
|
argon2 = "0.5.2"
|
||||||
async-graphql = { version = "7.0.7", default-features = false }
|
async-graphql = { version = "7.0.9", default-features = false }
|
||||||
async-graphql-axum = { package = "surrealdb-async-graphql-axum", version = "7.0.7-surrealdb.1" }
|
async-graphql-axum = { version = "7.0.9" }
|
||||||
axum = { version = "0.7.4", features = ["tracing", "ws"] }
|
axum = { version = "0.7.4", features = ["tracing", "ws"] }
|
||||||
axum-extra = { version = "0.9.2", features = [
|
axum-extra = { version = "0.9.2", features = [
|
||||||
"query",
|
"query",
|
||||||
|
|
|
@ -1164,6 +1164,9 @@ allow_unsafe = true
|
||||||
[pkg.surrealdb-async-graphql-axum]
|
[pkg.surrealdb-async-graphql-axum]
|
||||||
allow_apis = ["net"]
|
allow_apis = ["net"]
|
||||||
|
|
||||||
|
[pkg.futures-timer]
|
||||||
|
allow_unsafe = true
|
||||||
|
|
||||||
[pkg.castaway]
|
[pkg.castaway]
|
||||||
allow_unsafe = true
|
allow_unsafe = true
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ ammonia = "4.0.0"
|
||||||
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
|
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
|
||||||
argon2 = "0.5.2"
|
argon2 = "0.5.2"
|
||||||
ascii = { version = "0.3.2", package = "any_ascii" }
|
ascii = { version = "0.3.2", package = "any_ascii" }
|
||||||
async-graphql = { version = "7.0.7", default-features = false, features = ["dynamic-schema"] }
|
async-graphql = { version = "7.0.9", default-features = false, features = ["dynamic-schema"] }
|
||||||
base64 = "0.21.5"
|
base64 = "0.21.5"
|
||||||
bcrypt = "0.15.0"
|
bcrypt = "0.15.0"
|
||||||
bincode = "1.3.3"
|
bincode = "1.3.3"
|
||||||
|
|
|
@ -91,7 +91,6 @@ where
|
||||||
return Ok(to_rejection(e).into_response());
|
return Ok(to_rejection(e).into_response());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let is_accept_multipart_mixed = req
|
let is_accept_multipart_mixed = req
|
||||||
.headers()
|
.headers()
|
||||||
.get("accept")
|
.get("accept")
|
||||||
|
@ -104,16 +103,9 @@ where
|
||||||
Ok(req) => req,
|
Ok(req) => req,
|
||||||
Err(err) => return Ok(err.into_response()),
|
Err(err) => return Ok(err.into_response()),
|
||||||
};
|
};
|
||||||
|
|
||||||
let stream = Executor::execute_stream(&executor, req.0, None);
|
let stream = Executor::execute_stream(&executor, req.0, None);
|
||||||
let body = Body::from_stream(
|
let body = Body::from_stream(
|
||||||
create_multipart_mixed_stream(
|
create_multipart_mixed_stream(stream, Duration::from_secs(30))
|
||||||
stream,
|
|
||||||
tokio_stream::wrappers::IntervalStream::new(tokio::time::interval(
|
|
||||||
Duration::from_secs(30),
|
|
||||||
))
|
|
||||||
.map(|_| ()),
|
|
||||||
)
|
|
||||||
.map(Ok::<_, std::io::Error>),
|
.map(Ok::<_, std::io::Error>),
|
||||||
);
|
);
|
||||||
Ok(HttpResponse::builder()
|
Ok(HttpResponse::builder()
|
||||||
|
|
|
@ -155,10 +155,6 @@ criteria = "safe-to-deploy"
|
||||||
version = "3.0.0"
|
version = "3.0.0"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.ascii_utils]]
|
|
||||||
version = "0.9.3"
|
|
||||||
criteria = "safe-to-deploy"
|
|
||||||
|
|
||||||
[[exemptions.assert_fs]]
|
[[exemptions.assert_fs]]
|
||||||
version = "1.1.1"
|
version = "1.1.1"
|
||||||
criteria = "safe-to-run"
|
criteria = "safe-to-run"
|
||||||
|
@ -180,19 +176,23 @@ version = "1.9.1"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.async-graphql]]
|
[[exemptions.async-graphql]]
|
||||||
version = "7.0.7"
|
version = "7.0.9"
|
||||||
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
|
[[exemptions.async-graphql-axum]]
|
||||||
|
version = "7.0.9"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.async-graphql-derive]]
|
[[exemptions.async-graphql-derive]]
|
||||||
version = "7.0.7"
|
version = "7.0.9"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.async-graphql-parser]]
|
[[exemptions.async-graphql-parser]]
|
||||||
version = "7.0.7"
|
version = "7.0.9"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.async-graphql-value]]
|
[[exemptions.async-graphql-value]]
|
||||||
version = "7.0.7"
|
version = "7.0.9"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.async-lock]]
|
[[exemptions.async-lock]]
|
||||||
|
@ -571,10 +571,6 @@ criteria = "safe-to-deploy"
|
||||||
version = "0.4.0"
|
version = "0.4.0"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.fast_chemail]]
|
|
||||||
version = "0.9.6"
|
|
||||||
criteria = "safe-to-deploy"
|
|
||||||
|
|
||||||
[[exemptions.figment]]
|
[[exemptions.figment]]
|
||||||
version = "0.10.15"
|
version = "0.10.15"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
@ -639,6 +635,10 @@ criteria = "safe-to-deploy"
|
||||||
version = "0.3.30"
|
version = "0.3.30"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
|
[[exemptions.futures-timer]]
|
||||||
|
version = "3.0.3"
|
||||||
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.futures-util]]
|
[[exemptions.futures-util]]
|
||||||
version = "0.3.30"
|
version = "0.3.30"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
@ -687,10 +687,6 @@ criteria = "safe-to-run"
|
||||||
version = "2.3.1"
|
version = "2.3.1"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.handlebars]]
|
|
||||||
version = "5.1.2"
|
|
||||||
criteria = "safe-to-deploy"
|
|
||||||
|
|
||||||
[[exemptions.hash32]]
|
[[exemptions.hash32]]
|
||||||
version = "0.3.1"
|
version = "0.3.1"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
@ -1059,18 +1055,6 @@ criteria = "safe-to-deploy"
|
||||||
version = "2.7.11"
|
version = "2.7.11"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
||||||
[[exemptions.pest_derive]]
|
|
||||||
version = "2.7.11"
|
|
||||||
criteria = "safe-to-deploy"
|
|
||||||
|
|
||||||
[[exemptions.pest_generator]]
|
|
||||||
version = "2.7.11"
|
|
||||||
criteria = "safe-to-deploy"
|
|
||||||
|
|
||||||
[[exemptions.pest_meta]]
|
|
||||||
version = "2.7.11"
|
|
||||||
criteria = "safe-to-deploy"
|
|
||||||
|
|
||||||
[[exemptions.petgraph]]
|
[[exemptions.petgraph]]
|
||||||
version = "0.6.4"
|
version = "0.6.4"
|
||||||
criteria = "safe-to-deploy"
|
criteria = "safe-to-deploy"
|
||||||
|
|
|
@ -436,13 +436,6 @@ user-id = 145457
|
||||||
user-login = "tobiemh"
|
user-login = "tobiemh"
|
||||||
user-name = "Tobie Morgan Hitchcock"
|
user-name = "Tobie Morgan Hitchcock"
|
||||||
|
|
||||||
[[publisher.surrealdb-async-graphql-axum]]
|
|
||||||
version = "7.0.7-surrealdb.1"
|
|
||||||
when = "2024-08-07"
|
|
||||||
user-id = 145457
|
|
||||||
user-login = "tobiemh"
|
|
||||||
user-name = "Tobie Morgan Hitchcock"
|
|
||||||
|
|
||||||
[[publisher.surrealdb-core]]
|
[[publisher.surrealdb-core]]
|
||||||
version = "2.0.0-alpha.2"
|
version = "2.0.0-alpha.2"
|
||||||
when = "2024-01-31"
|
when = "2024-01-31"
|
||||||
|
|
Loading…
Reference in a new issue