Update dependencies
This commit is contained in:
parent
6aa4ece5ff
commit
84fe7bfc57
54
Cargo.toml
54
Cargo.toml
|
@ -25,44 +25,44 @@ async-graphql-derive = { path = "derive", version = "=2.6.0" }
|
||||||
async-graphql-value = { path = "value", version = "=2.5.9" }
|
async-graphql-value = { path = "value", version = "=2.5.9" }
|
||||||
async-graphql-parser = { path = "parser", version = "=2.5.9" }
|
async-graphql-parser = { path = "parser", version = "=2.5.9" }
|
||||||
|
|
||||||
async-stream = "0.3"
|
async-stream = "0.3.0"
|
||||||
async-trait = "0.1.41"
|
async-trait = "0.1.48"
|
||||||
fnv = "1.0.6"
|
fnv = "1.0.7"
|
||||||
futures-util = { version = "0.3.8", default-features = false, features = ["io"] }
|
futures-util = { version = "0.3.13", default-features = false, features = ["io"] }
|
||||||
indexmap = "1.6.0"
|
indexmap = "1.6.2"
|
||||||
once_cell = "1.3.1"
|
once_cell = "1.7.2"
|
||||||
pin-project-lite = "0.2.0"
|
pin-project-lite = "0.2.6"
|
||||||
regex = "1.4.1"
|
regex = "1.4.5"
|
||||||
serde = { version = "1.0.117", features = ["derive"] }
|
serde = { version = "1.0.125", features = ["derive"] }
|
||||||
serde_json = "1.0.48"
|
serde_json = "1.0.64"
|
||||||
spin = "0.7.0"
|
spin = "0.9.0"
|
||||||
thiserror = "1.0.21"
|
thiserror = "1.0.24"
|
||||||
static_assertions = "1.1.0"
|
static_assertions = "1.1.0"
|
||||||
http = "0.2.3"
|
http = "0.2.3"
|
||||||
multer = "1.2.2"
|
multer = "1.2.2"
|
||||||
tempfile = "3.1.0"
|
tempfile = "3.2.0"
|
||||||
|
|
||||||
# Feature optional dependencies
|
# Feature optional dependencies
|
||||||
bson = { version = "1.0.0", optional = true }
|
bson = { version = "1.2.0", optional = true }
|
||||||
chrono = { version = "0.4.15", optional = true }
|
chrono = { version = "0.4.19", optional = true }
|
||||||
chrono-tz = { version = "0.5.1", optional = true }
|
chrono-tz = { version = "0.5.3", optional = true }
|
||||||
log = { version = "0.4.11", optional = true }
|
log = { version = "0.4.14", optional = true }
|
||||||
tracing = { version = "0.1.21", optional = true }
|
tracing = { version = "0.1.25", optional = true }
|
||||||
opentelemetry = { version = "0.12.0", optional = true }
|
opentelemetry = { version = "0.13.0", optional = true }
|
||||||
url = { version = "2.1.1", optional = true }
|
url = { version = "2.2.1", optional = true }
|
||||||
uuid = { version = "0.8.1", optional = true, features = ["v4", "serde"] }
|
uuid = { version = "0.8.2", optional = true, features = ["v4", "serde"] }
|
||||||
|
|
||||||
# Non-feature optional dependencies
|
# Non-feature optional dependencies
|
||||||
blocking = { version = "1.0.0", optional = true }
|
blocking = { version = "1.0.2", optional = true }
|
||||||
lru = { version = "0.6.0", optional = true }
|
lru = { version = "0.6.5", optional = true }
|
||||||
num-traits = { version = "0.2.12", optional = true }
|
num-traits = { version = "0.2.14", optional = true }
|
||||||
sha2 = { version = "0.9.1", optional = true }
|
sha2 = { version = "0.9.3", optional = true }
|
||||||
futures-timer = { version = "3.0.2", optional = true }
|
futures-timer = { version = "3.0.2", optional = true }
|
||||||
futures-channel = { version = "0.3.8", optional = true }
|
futures-channel = { version = "0.3.13", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tokio = { version = "1.4.0", features = ["macros", "rt-multi-thread", "sync", "time"] }
|
tokio = { version = "1.4.0", features = ["macros", "rt-multi-thread", "sync", "time"] }
|
||||||
futures-channel = "0.3.8"
|
futures-channel = "0.3.13"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
|
|
@ -5,15 +5,15 @@ authors = ["sunli <scott_s829@163.com>", "Koxiaet"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-std = { version = "1.6.5", features = ["attributes"] }
|
async-std = { version = "1.9.0", features = ["attributes"] }
|
||||||
futures = "0.3.6"
|
futures = "0.3.13"
|
||||||
serde_json = "*"
|
serde_json = "1.0.64"
|
||||||
async-graphql-parser = { path = "../parser" }
|
async-graphql-parser = { path = "../parser" }
|
||||||
async-graphql = { path = ".." }
|
async-graphql = { path = ".." }
|
||||||
jemallocator = { version = "0.3.2", optional = true }
|
jemallocator = { version = "0.3.2", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.3"
|
criterion = "0.3.4"
|
||||||
simple = { path = "simple" }
|
simple = { path = "simple" }
|
||||||
chat = { path = "chat" }
|
chat = { path = "chat" }
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,4 @@ edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-graphql = { path = "../.." }
|
async-graphql = { path = "../.." }
|
||||||
lazy_static = "*"
|
lazy_static = "1.4.0"
|
||||||
|
|
|
@ -6,4 +6,4 @@ edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-graphql = { path = "../.." }
|
async-graphql = { path = "../.." }
|
||||||
lazy_static = "*"
|
lazy_static = "1.4.0"
|
||||||
|
|
|
@ -16,10 +16,10 @@ proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-graphql-parser = { path = "../parser", version = "=2.5.9" }
|
async-graphql-parser = { path = "../parser", version = "=2.5.9" }
|
||||||
proc-macro2 = "1.0.6"
|
proc-macro2 = "1.0.24"
|
||||||
syn = { version = "1.0.44", features = ["full", "extra-traits", "visit-mut", "visit"] }
|
syn = { version = "1.0.64", features = ["full", "extra-traits", "visit-mut", "visit"] }
|
||||||
quote = "1.0.3"
|
quote = "1.0.9"
|
||||||
Inflector = "0.11.4"
|
Inflector = "0.11.4"
|
||||||
proc-macro-crate = "0.1.4"
|
proc-macro-crate = "1.0.0"
|
||||||
darling = "0.10"
|
darling = "0.12.2"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0.24"
|
||||||
|
|
|
@ -2,7 +2,7 @@ use std::collections::HashSet;
|
||||||
|
|
||||||
use darling::FromMeta;
|
use darling::FromMeta;
|
||||||
use proc_macro2::{Span, TokenStream, TokenTree};
|
use proc_macro2::{Span, TokenStream, TokenTree};
|
||||||
use proc_macro_crate::crate_name;
|
use proc_macro_crate::{crate_name, FoundCrate};
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
use syn::visit::Visit;
|
use syn::visit::Visit;
|
||||||
use syn::{
|
use syn::{
|
||||||
|
@ -38,7 +38,10 @@ pub fn get_crate_name(internal: bool) -> TokenStream {
|
||||||
if internal {
|
if internal {
|
||||||
quote! { crate }
|
quote! { crate }
|
||||||
} else {
|
} else {
|
||||||
let name = crate_name("async-graphql").unwrap_or_else(|_| "async_graphql".to_owned());
|
let name = match crate_name("async-graphql") {
|
||||||
|
Ok(FoundCrate::Name(name)) => name,
|
||||||
|
Ok(FoundCrate::Itself) | Err(_) => "async_graphql".to_string(),
|
||||||
|
};
|
||||||
TokenTree::from(Ident::new(&name, Span::call_site())).into()
|
TokenTree::from(Ident::new(&name, Span::call_site())).into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,14 +15,14 @@ categories = ["network-programming", "asynchronous"]
|
||||||
async-graphql = { path = "../..", version = "=2.6.4" }
|
async-graphql = { path = "../..", version = "=2.6.4" }
|
||||||
|
|
||||||
actix = "0.10.0"
|
actix = "0.10.0"
|
||||||
actix-http = "2.0.0"
|
actix-http = "2.2.0"
|
||||||
actix-web = { version = "3.1.0", default-features = false }
|
actix-web = { version = "3.3.2", default-features = false }
|
||||||
actix-web-actors = "3.0.0"
|
actix-web-actors = "3.0.0"
|
||||||
async-channel = "1.5.1"
|
async-channel = "1.6.1"
|
||||||
futures-util = { version = "0.3.8", default-features = false }
|
futures-util = { version = "0.3.13", default-features = false }
|
||||||
serde_json = "1.0.59"
|
serde_json = "1.0.64"
|
||||||
serde_urlencoded = "0.7.0"
|
serde_urlencoded = "0.7.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
actix-rt = "1.1.1"
|
actix-rt = "1.1.0"
|
||||||
async-mutex = "1.4.0"
|
async-mutex = "1.4.0"
|
||||||
|
|
|
@ -17,6 +17,6 @@ categories = ["network-programming", "asynchronous"]
|
||||||
async-graphql = { path = "../..", version = "=2.6.4" }
|
async-graphql = { path = "../..", version = "=2.6.4" }
|
||||||
|
|
||||||
rocket = { git = "https://github.com/SergioBenitez/Rocket", rev = "48fd83a", default-features = false } # TODO: Change to Cargo crate when Rocket 0.5.0 is released
|
rocket = { git = "https://github.com/SergioBenitez/Rocket", rev = "48fd83a", default-features = false } # TODO: Change to Cargo crate when Rocket 0.5.0 is released
|
||||||
serde = "1.0.117"
|
serde = "1.0.125"
|
||||||
serde_json = "1.0.59"
|
serde_json = "1.0.64"
|
||||||
tokio-util = { version = "0.6.1", default-features = false, features = ["compat"] }
|
tokio-util = { version = "0.6.5", default-features = false, features = ["compat"] }
|
||||||
|
|
|
@ -13,15 +13,15 @@ categories = ["network-programming", "asynchronous"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-graphql = { path = "../..", version = "=2.6.4" }
|
async-graphql = { path = "../..", version = "=2.6.4" }
|
||||||
async-trait = "0.1.42"
|
async-trait = "0.1.48"
|
||||||
futures-util = "0.3.12"
|
futures-util = "0.3.13"
|
||||||
serde_json = "1.0.62"
|
serde_json = "1.0.64"
|
||||||
|
|
||||||
tide = { version = "0.16.0", default-features = false, features = ["h1-server"] }
|
tide = { version = "0.16.0", default-features = false, features = ["h1-server"] }
|
||||||
tide-websockets = "0.2.0"
|
tide-websockets = "0.3.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
# Surf lacks multipart support
|
# Surf lacks multipart support
|
||||||
reqwest = { version = "0.10.8", default-features = false, features = ["json"] }
|
reqwest = { version = "0.11.2", default-features = false, features = ["json", "multipart"] }
|
||||||
async-std = { version = "1.9.0", features = ["attributes", "tokio02"] }
|
async-std = { version = "1.9.0", features = ["attributes", "tokio1"] }
|
||||||
serde_json = "1.0.61"
|
serde_json = "1.0.64"
|
||||||
|
|
|
@ -15,9 +15,9 @@ categories = ["network-programming", "asynchronous"]
|
||||||
async-graphql = { path = "../..", version = "=2.6.4" }
|
async-graphql = { path = "../..", version = "=2.6.4" }
|
||||||
|
|
||||||
warp = { version = "0.3.0", default-features = false, features = ["websocket"] }
|
warp = { version = "0.3.0", default-features = false, features = ["websocket"] }
|
||||||
futures-util = { version = "0.3.8", default-features = false }
|
futures-util = { version = "0.3.13", default-features = false }
|
||||||
serde_json = "1.0.59"
|
serde_json = "1.0.64"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tokio = { version = "1.0", default-features = false, features = ["macros", "rt-multi-thread", "time"] }
|
tokio = { version = "1.4.0", default-features = false, features = ["macros", "rt-multi-thread", "time"] }
|
||||||
async-stream = "0.3.0"
|
async-stream = "0.3.0"
|
||||||
|
|
|
@ -15,5 +15,5 @@ categories = ["network-programming", "asynchronous"]
|
||||||
async-graphql-value = { path = "../value", version = "=2.5.9" }
|
async-graphql-value = { path = "../value", version = "=2.5.9" }
|
||||||
pest = "2.1.3"
|
pest = "2.1.3"
|
||||||
pest_derive = "2.1.0"
|
pest_derive = "2.1.0"
|
||||||
serde_json = "1.0.57"
|
serde_json = "1.0.64"
|
||||||
serde = { version = "1.0.115", features = ["derive"] }
|
serde = { version = "1.0.125", features = ["derive"] }
|
||||||
|
|
|
@ -101,7 +101,7 @@ impl<T: CacheStorage> Extension for ApolloPersistedQueriesExtension<T> {
|
||||||
} else {
|
} else {
|
||||||
let sha256_hash = format!("{:x}", Sha256::digest(request.query.as_bytes()));
|
let sha256_hash = format!("{:x}", Sha256::digest(request.query.as_bytes()));
|
||||||
|
|
||||||
if (persisted_query.sha256_hash != sha256_hash) {
|
if persisted_query.sha256_hash != sha256_hash {
|
||||||
Err(ServerError::new("provided sha does not match query"))
|
Err(ServerError::new("provided sha does not match query"))
|
||||||
} else {
|
} else {
|
||||||
self.storage.set(sha256_hash, request.query.clone()).await;
|
self.storage.set(sha256_hash, request.query.clone()).await;
|
||||||
|
|
|
@ -12,5 +12,5 @@ keywords = ["futures", "async", "graphql"]
|
||||||
categories = ["network-programming", "asynchronous"]
|
categories = ["network-programming", "asynchronous"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde_json = "1.0.57"
|
serde_json = "1.0.64"
|
||||||
serde = { version = "1.0.115", features = ["derive"] }
|
serde = { version = "1.0.125", features = ["derive"] }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user