From 1620b92e2efd9f8530edd3eb5121f5afd59f17bb Mon Sep 17 00:00:00 2001 From: Sunli Date: Tue, 15 Sep 2020 10:30:42 +0800 Subject: [PATCH] Update examples for async-graphql 2.0.0-alpha.7 --- actix-web/error-extensions/Cargo.toml | 4 ++-- actix-web/starwars/Cargo.toml | 4 ++-- actix-web/subscription/Cargo.toml | 4 ++-- actix-web/token-from-header/Cargo.toml | 4 ++-- actix-web/token-from-header/src/main.rs | 2 -- actix-web/upload/Cargo.toml | 4 ++-- federation/federation-accounts/Cargo.toml | 4 ++-- federation/federation-products/Cargo.toml | 4 ++-- federation/federation-products/src/main.rs | 2 -- federation/federation-reviews/Cargo.toml | 4 ++-- federation/federation-reviews/src/main.rs | 2 -- models/books/Cargo.toml | 2 +- models/files/Cargo.toml | 2 +- models/starwars/Cargo.toml | 2 +- models/starwars/src/lib.rs | 2 -- rocket/starwars/Cargo.toml | 4 ++-- tide/dataloader/Cargo.toml | 4 ++-- tide/starwars/Cargo.toml | 4 ++-- tide/token-from-header/Cargo.toml | 4 ++-- tide/token-from-header/src/main.rs | 2 -- warp/starwars/Cargo.toml | 4 ++-- warp/subscription/Cargo.toml | 4 ++-- warp/token-from-header/Cargo.toml | 4 ++-- warp/token-from-header/src/main.rs | 2 -- 24 files changed, 33 insertions(+), 45 deletions(-) diff --git a/actix-web/error-extensions/Cargo.toml b/actix-web/error-extensions/Cargo.toml index d987d03..c77955e 100644 --- a/actix-web/error-extensions/Cargo.toml +++ b/actix-web/error-extensions/Cargo.toml @@ -5,8 +5,8 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-actix-web = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-actix-web = "2.0.0-alpha.7" actix-web = "3.0.0" actix-rt = "1.1.0" thiserror = "1.0" diff --git a/actix-web/starwars/Cargo.toml b/actix-web/starwars/Cargo.toml index 47e65c3..08158e9 100644 --- a/actix-web/starwars/Cargo.toml +++ b/actix-web/starwars/Cargo.toml @@ -5,8 +5,8 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-actix-web = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-actix-web = "2.0.0-alpha.7" actix-web = "3.0.0" actix-rt = "1.1.0" starwars = { path = "../../models/starwars" } \ No newline at end of file diff --git a/actix-web/subscription/Cargo.toml b/actix-web/subscription/Cargo.toml index 6f91760..aaaf32c 100644 --- a/actix-web/subscription/Cargo.toml +++ b/actix-web/subscription/Cargo.toml @@ -5,8 +5,8 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-actix-web = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-actix-web = "2.0.0-alpha.7" actix-web = "3.0.0" actix-rt = "1.1.0" actix-web-actors = "3.0.0" diff --git a/actix-web/token-from-header/Cargo.toml b/actix-web/token-from-header/Cargo.toml index cfa0554..0ad7d8b 100644 --- a/actix-web/token-from-header/Cargo.toml +++ b/actix-web/token-from-header/Cargo.toml @@ -5,8 +5,8 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-actix-web = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-actix-web = "2.0.0-alpha.7" actix-web = "3.0.0" actix-rt = "1.1.0" futures = "0.3" diff --git a/actix-web/token-from-header/src/main.rs b/actix-web/token-from-header/src/main.rs index 33079c4..70f26d9 100644 --- a/actix-web/token-from-header/src/main.rs +++ b/actix-web/token-from-header/src/main.rs @@ -1,5 +1,3 @@ -#![allow(clippy::needless_lifetimes)] - use actix_web::{guard, web, App, HttpRequest, HttpResponse, HttpServer, Result}; use actix_web_actors::ws; use async_graphql::http::{playground_source, GraphQLPlaygroundConfig}; diff --git a/actix-web/upload/Cargo.toml b/actix-web/upload/Cargo.toml index 9e7e408..443d096 100644 --- a/actix-web/upload/Cargo.toml +++ b/actix-web/upload/Cargo.toml @@ -5,8 +5,8 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-actix-web = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-actix-web = "2.0.0-alpha.7" actix-web = "3.0.0" actix-rt = "1.1.0" files = { path = "../../models/files" } \ No newline at end of file diff --git a/federation/federation-accounts/Cargo.toml b/federation/federation-accounts/Cargo.toml index 261730a..3cc0ffe 100644 --- a/federation/federation-accounts/Cargo.toml +++ b/federation/federation-accounts/Cargo.toml @@ -5,7 +5,7 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-warp = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-warp = "2.0.0-alpha.7" tokio = { version = "0.2", features = ["macros"] } warp = "0.2" \ No newline at end of file diff --git a/federation/federation-products/Cargo.toml b/federation/federation-products/Cargo.toml index 5347d4b..d6a9531 100644 --- a/federation/federation-products/Cargo.toml +++ b/federation/federation-products/Cargo.toml @@ -5,7 +5,7 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-warp = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-warp = "2.0.0-alpha.7" tokio = { version = "0.2", features = ["macros"] } warp = "0.2" \ No newline at end of file diff --git a/federation/federation-products/src/main.rs b/federation/federation-products/src/main.rs index 826d6b8..8f5ab89 100644 --- a/federation/federation-products/src/main.rs +++ b/federation/federation-products/src/main.rs @@ -1,5 +1,3 @@ -#![allow(clippy::needless_lifetimes)] - use async_graphql::{ Context, EmptyMutation, EmptySubscription, GQLObject, GQLSimpleObject, Schema, }; diff --git a/federation/federation-reviews/Cargo.toml b/federation/federation-reviews/Cargo.toml index 63af428..d0d23d4 100644 --- a/federation/federation-reviews/Cargo.toml +++ b/federation/federation-reviews/Cargo.toml @@ -5,7 +5,7 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-warp = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-warp = "2.0.0-alpha.7" tokio = { version = "0.2", features = ["macros"] } warp = "0.2" \ No newline at end of file diff --git a/federation/federation-reviews/src/main.rs b/federation/federation-reviews/src/main.rs index c18f2a2..f948f62 100644 --- a/federation/federation-reviews/src/main.rs +++ b/federation/federation-reviews/src/main.rs @@ -1,5 +1,3 @@ -#![allow(clippy::needless_lifetimes)] - use async_graphql::{ Context, EmptyMutation, EmptySubscription, GQLObject, GQLSimpleObject, Schema, ID, }; diff --git a/models/books/Cargo.toml b/models/books/Cargo.toml index 1ee6db2..092bfb8 100644 --- a/models/books/Cargo.toml +++ b/models/books/Cargo.toml @@ -5,7 +5,7 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" slab = "0.4.2" tokio = { version = "0.2", features = ["time", "stream"] } futures = "0.3.0" diff --git a/models/files/Cargo.toml b/models/files/Cargo.toml index 956d900..7f615b8 100644 --- a/models/files/Cargo.toml +++ b/models/files/Cargo.toml @@ -5,6 +5,6 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" slab = "0.4.2" futures = "0.3.0" \ No newline at end of file diff --git a/models/starwars/Cargo.toml b/models/starwars/Cargo.toml index a9193fc..0b29fa4 100644 --- a/models/starwars/Cargo.toml +++ b/models/starwars/Cargo.toml @@ -5,5 +5,5 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" slab = "0.4.2" diff --git a/models/starwars/src/lib.rs b/models/starwars/src/lib.rs index 5b9aef3..53a54fc 100644 --- a/models/starwars/src/lib.rs +++ b/models/starwars/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::needless_lifetimes)] - mod model; use async_graphql::{EmptyMutation, EmptySubscription, Schema}; diff --git a/rocket/starwars/Cargo.toml b/rocket/starwars/Cargo.toml index f253166..8aa8d45 100644 --- a/rocket/starwars/Cargo.toml +++ b/rocket/starwars/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Daniel Wiesenberg "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-rocket = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-rocket = "2.0.0-alpha.7" rocket = { git = "https://github.com/SergioBenitez/Rocket/", rev = "dc2c6ec", default-features = false } #TODO: Change to Cargo crate, when Rocket 0.5.0 is released starwars = { path = "../../models/starwars" } diff --git a/tide/dataloader/Cargo.toml b/tide/dataloader/Cargo.toml index ad10aa8..cacbe87 100644 --- a/tide/dataloader/Cargo.toml +++ b/tide/dataloader/Cargo.toml @@ -5,8 +5,8 @@ authors = ["vkill "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-tide = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-tide = "2.0.0-alpha.7" tide = "0.13" async-std = "1.5.0" dataloader = "0.12.0" diff --git a/tide/starwars/Cargo.toml b/tide/starwars/Cargo.toml index 71db96f..00d3e71 100644 --- a/tide/starwars/Cargo.toml +++ b/tide/starwars/Cargo.toml @@ -5,8 +5,8 @@ authors = ["vkill "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-tide = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-tide = "2.0.0-alpha.7" tide = "0.13" async-std = "1.5.0" starwars = { path = "../../models/starwars" } diff --git a/tide/token-from-header/Cargo.toml b/tide/token-from-header/Cargo.toml index 9e618a8..8f874f2 100644 --- a/tide/token-from-header/Cargo.toml +++ b/tide/token-from-header/Cargo.toml @@ -5,8 +5,8 @@ authors = ["vkill "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-tide = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-tide = "2.0.0-alpha.7" tide = "0.13" async-std = "1.5.0" diff --git a/tide/token-from-header/src/main.rs b/tide/token-from-header/src/main.rs index d0a227f..e80bea4 100644 --- a/tide/token-from-header/src/main.rs +++ b/tide/token-from-header/src/main.rs @@ -1,5 +1,3 @@ -#![allow(clippy::needless_lifetimes)] - use async_graphql::http::{playground_source, GraphQLPlaygroundConfig}; use async_graphql::{Context, EmptyMutation, EmptySubscription, GQLObject, Schema}; use async_std::task; diff --git a/warp/starwars/Cargo.toml b/warp/starwars/Cargo.toml index 5610e6c..6d89249 100644 --- a/warp/starwars/Cargo.toml +++ b/warp/starwars/Cargo.toml @@ -5,8 +5,8 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-warp = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-warp = "2.0.0-alpha.7" tokio = { version = "0.2", features = ["macros"] } warp = "0.2" starwars = { path = "../../models/starwars" } diff --git a/warp/subscription/Cargo.toml b/warp/subscription/Cargo.toml index ddae24f..3de6b72 100644 --- a/warp/subscription/Cargo.toml +++ b/warp/subscription/Cargo.toml @@ -5,8 +5,8 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-warp = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-warp = "2.0.0-alpha.7" tokio = { version = "0.2", features = ["macros"] } warp = "0.2" books = { path = "../../models/books" } diff --git a/warp/token-from-header/Cargo.toml b/warp/token-from-header/Cargo.toml index 84e345a..66e6385 100644 --- a/warp/token-from-header/Cargo.toml +++ b/warp/token-from-header/Cargo.toml @@ -5,8 +5,8 @@ authors = ["sunli "] edition = "2018" [dependencies] -async-graphql = "2.0.0-alpha.5" -async-graphql-warp = "2.0.0-alpha.5" +async-graphql = "2.0.0-alpha.7" +async-graphql-warp = "2.0.0-alpha.7" tokio = { version = "0.2", features = ["macros"] } warp = "0.2" serde_json = "1.0" diff --git a/warp/token-from-header/src/main.rs b/warp/token-from-header/src/main.rs index 4c81118..339b0a5 100644 --- a/warp/token-from-header/src/main.rs +++ b/warp/token-from-header/src/main.rs @@ -1,5 +1,3 @@ -#![allow(clippy::needless_lifetimes)] - use async_graphql::http::{playground_source, GraphQLPlaygroundConfig}; use async_graphql::{ Context, Data, EmptyMutation, FieldResult, GQLObject, GQLSubscription, Schema,