Disable default features for rocket integration (#530)

This commit is contained in:
Oleksandr 2020-02-13 08:43:05 +02:00 committed by GitHub
parent eff086a337
commit dea15f489d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,7 @@
# master
- Compatibility with the latest `juniper`.
- Rocket integration does not require default features.
# [[0.5.2] 2019-12-16](https://github.com/graphql-rust/juniper/releases/tag/juniper_rocket-0.5.2)

View file

@ -21,7 +21,7 @@ serde_json = { version = "1.0.2" }
serde_derive = { version = "1.0.2" }
juniper = { version = "0.14.2", default-features = false, path = "../juniper"}
rocket = { version = "0.4.0" }
rocket = { version = "0.4.2", default-features = false }
[dev-dependencies.juniper]
version = "0.14.2"

View file

@ -216,7 +216,7 @@ impl GraphQLResponse {
/// request: Form<juniper_rocket::GraphQLRequest>,
/// schema: State<Schema>,
/// ) -> juniper_rocket::GraphQLResponse {
/// if cookies.get_private("user_id").is_none() {
/// if cookies.get("user_id").is_none() {
/// let err = FieldError::new("User is not logged in", Value::null());
/// return juniper_rocket::GraphQLResponse::error(err);
/// }

View file

@ -1,6 +1,7 @@
# master
- Compatibility with the latest `juniper`.
- Rocket integration does not require default features.
# [[0.5.1] 2019-10-24](https://github.com/graphql-rust/juniper/releases/tag/juniper_rocket-0.5.1)

View file

@ -21,7 +21,7 @@ serde_derive = { version = "1.0.2" }
juniper = { version = "0.14.1", default-features = false, path = "../juniper"}
futures = { version = "0.3.1", features = ["compat"] }
rocket = { git = "https://github.com/SergioBenitez/Rocket", branch = "async" }
rocket = { git = "https://github.com/SergioBenitez/Rocket", branch = "async", default-features = false }
tokio = "0.2"
[dev-dependencies.juniper]

View file

@ -54,8 +54,7 @@ use rocket::{
use juniper::{http, InputValue};
use juniper::{
serde::Deserialize, DefaultScalarValue, FieldError, GraphQLType, RootNode,
ScalarValue,
serde::Deserialize, DefaultScalarValue, FieldError, GraphQLType, RootNode, ScalarValue,
};
#[cfg(feature = "async")]