Commit graph

765 commits

Author SHA1 Message Date
Christian Legnitto
3b5cf4ad64
Fix some clippy lints (#564)
* Fix some clippy lints
2020-03-13 22:03:36 -07:00
Tommaso Checchi
fd4290462c
Require serde_json when enabling expose-test-schema (#527)
I noticed that `juniper` fails to build if the `"expose-test-schema"` feature is enabled without also enabling `"serde_json"`. I guess it might make sense to add it as a dependency so people don't have to check this file to figure that out!

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-03-13 21:38:10 -07:00
Christian Legnitto
bc7e5bac13
Add docs to silence warnings for async (#563) 2020-03-13 19:34:22 -07:00
Christian Legnitto
48c924ea27
Async tests (#559)
Convert more tests to async
2020-03-10 19:11:40 -07:00
Christian Legnitto
961a07125f
Convert more tests to async (#558) 2020-03-10 00:12:09 -07:00
Christian Legnitto
bdaa77053d
Fix field_execution and merge_parallel_inline_fragments tests under async (#557)
The ordering was off when run under async. Not 100% sure I understand this code but this seems
to work.
2020-03-09 23:40:54 -07:00
Christian Legnitto
e9b8aa2c38
Rename execute -> execute_sync, execute_async -> execute (#556) 2020-03-09 22:40:26 -07:00
samuela
1411969c37
err.description is deprecated (#537) 2020-03-09 00:12:57 -07:00
Christian Legnitto
51b86af13b
Update images for azure pipelines (#555)
There were warnings saying later this month these images were going away. Switch to supported images from https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
2020-03-09 00:12:11 -07:00
Christian Legnitto
00b111a1ff
Remove async feature gate (#554)
This still has the async / non-async split. Future diffs will get
rid of `GraphQLTypeAsync` and move everything into `GraphQLType`.
2020-03-08 23:20:11 -07:00
Félix Gagnon-Grenier
15e9bffa84
Warning about normal methods (#545)
There's a comment [here](https://docs.rs/juniper/0.14.2/juniper/attr.object.html) that only GraphQL fields can be specified in `#[juniper::object]` impl block, yet in the book it was not specified, I needed help to get the idea to try it.

I simply copied that information because it feels important.

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-03-04 08:58:52 -08:00
Victor-Nicolae Savu
f5e4b6b9b6
Match the list of integrations to the page order (#548)
* Remove duplicate link to Hyper integration

The `Adding a Server` page contains a duplicate link to `Hyper`. The first of them can cause the reader to accidentally skip the `Rocket` and `Iron` integration pages because their pages are before the one for `Hyper` in the reading order. 

Remove the first link so that the list of official server integrations matches the page order.

* Match the list of integrations to the page order

In the book, the pages for the official integrations appear in the order: `Warp`, `Rocket`, `Iron`, `Hyper`, but on the `Official Server Integrations` page they are listed with `Hyper` first. This can cause readers to accidentally skip the other three integrations if they click on the link for `Hyper` first. 

Move `Hyper` to the bottom of the list to match the reading order of the book.

* Remove unnecessary blank line
2020-03-02 09:57:17 +01:00
Justin Lee
a0b854f31c
Update README.md (#535)
Improved wording
2020-02-20 23:22:40 -07:00
Christian Legnitto
8925f64983
Temporarily disable interface tests (#543)
These aren't reimplemented yet as proc macros. Disabling them
so book tests on PRs pass and the website is updated.
2020-02-20 23:21:41 -07:00
David Pedersen
ca28e90f7e
Implement std::error::Error for all error types (#419)
* Implement `std::error::Error` for all error types

* Fix copy-paste

* Implement `Display` for `Value`

This is required for implementing `Display` for `FieldError`

* Implement `std::error::Error` for `FieldError`

This required removing `impl From<T> for FieldError where T: Display`
because it would otherwise cause a conflicting implementation. That is
because `impl From<T> for T` already exists.

Instead I added `impl From<String> for FieldError` and `impl From<&str>
for FieldError` which should cover most use cases of the previous
  `impl`. I also added `FieldError::from_error` so users can convert
  from any error they may have.

* Bring back `impl<T: Display, S> From<T> for FieldError<S>`

We cannot have this and `impl<S> std::error::Error for FieldError<S>` so
we agreed this is more valuable. More context https://github.com/graphql-rust/juniper/pull/419

* Write errors without allocations
2020-02-20 22:31:58 -07:00
samuela
db68dd7697
Extern crates are no longer necessary (#536) 2020-02-20 22:28:27 -07:00
Christian Legnitto
b63a44e0f8
Add futures dependency (#541)
Fixes https://github.com/graphql-rust/juniper/issues/534.

I am not sure if the best way is to have folks bring their own futures for the
derives / macros or to pull it in as a dep explicitly like I have done here.

Because people are filing issues, we will do it this way and see what other issues arise.
2020-02-20 21:53:39 -07:00
nickelc
547cf3e36f
Add GitHub workflows for CI and Book (#487) 2020-02-12 23:55:45 -07:00
Nathan Wilson
389fd5ca19
Add bson crate's ObjectId to juniper foreign scalar type integrations (#517) 2020-02-12 23:49:50 -07:00
Genna Wingert
4ccb129fa2
Update juniper_hyper to hyper 0.13 and add async resolution (#505)
This involves updating to futures 0.3, tokio 0.2 stable
2020-02-12 23:48:28 -07:00
Christian Legnitto
7ee67ed6e8
Convert graphql_object to central util parsing (#526) 2020-02-12 23:46:59 -07:00
James H
df2740393a
Add dataloader explaination to book (#518) 2020-02-12 23:45:15 -07:00
Oleksandr
dea15f489d
Disable default features for rocket integration (#530) 2020-02-12 23:43:05 -07:00
Jordão
eff086a337 Format code 2020-02-05 18:10:43 -08:00
Jordão
03229ddf65 Added a small test for field validation error in the async executor 2020-02-05 18:10:43 -08:00
Jordão
75b597d8f3 Added usage of context validator in the async executor 2020-02-05 18:10:43 -08:00
David Pedersen
6a04b113e6
Merge pull request #521 from tyranron/unfix-futures-version
Use caret requirement for specifying 'futures' crate version
2020-02-04 13:15:02 +01:00
tyranron
c51c675306
Use caret requirement for specifying 'futures' crate version 2020-02-04 09:57:47 +01:00
Christian Legnitto
211737cee0 Format code 2020-01-29 07:51:35 -05:00
Christian Legnitto
c8bec0fba3 Fix test 2020-01-29 07:51:35 -05:00
Christian Legnitto
b9193ddb61 Remove deprecated function 2020-01-29 07:51:35 -05:00
tyranron
dd9c201352 Upgrade uuid to 0.8 version 2020-01-29 01:59:42 -05:00
David Pedersen
be66798da0
Merge pull request #511 from andywswan/patch-1
fixing a double spell
2020-01-28 17:21:34 +01:00
Andy Swan
ab498f2f24
fixing a double spell 2020-01-28 11:07:25 +00:00
Christian Legnitto
c984457e91 Fix scalar and some tests under async
there is still some weirdness going on. Running async and
non-async tests in `integration_tests/*` works, but running it
from `integration_tests` does not.
2020-01-27 23:41:38 -05:00
Christian Legnitto
c42c71b02d Update to latest tokio 2020-01-22 07:56:03 -08:00
Christian Legnitto
d22fab76c8 Fix clippy lints in warp 2020-01-22 07:56:03 -08:00
Christian Legnitto
15d7f4d076
Remove Travis badge from README 2020-01-21 10:11:10 -08:00
Christian Legnitto
824f329b0f Remove TravisCI 2020-01-21 09:41:46 -08:00
Christian Legnitto
036b72796a Only run async tests on master for crates that require master 2020-01-21 09:22:14 -08:00
Christian Legnitto
a54a6e9621 Turn off juniper_warp until it is fixed 2020-01-21 09:04:27 -08:00
Christian Legnitto
31ca3e6156 Add async to doc tests 2020-01-21 08:38:13 -08:00
Christian Legnitto
b8b28ec2bb Add empty changelog to make release dry-run work 2020-01-21 08:28:31 -08:00
Christian Legnitto
9a634bb8e2 Add fake features to integration crates 2020-01-21 08:17:49 -08:00
Christian Legnitto
16f34db12f Add async feature flag 2020-01-21 08:04:08 -08:00
Christian Legnitto
80ef24fc12 Break dep cycle again 2020-01-21 07:53:36 -08:00
Christian Legnitto
98caeefbc0 Break dep cycle with features 2020-01-21 00:02:26 -08:00
Christian Legnitto
89e17abbb0 Fix makefiles for benchmarks 2020-01-20 23:42:57 -08:00
Christian Legnitto
c6becfe234 Fix juniper_codegen tests under async 2020-01-20 23:38:44 -08:00
Christian Legnitto
e97d25d650 Fix formatting 2020-01-20 23:29:29 -08:00