Commit graph

1057 commits

Author SHA1 Message Date
Christian Legnitto
51b86af13b
Update images for azure pipelines ()
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 ()
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 ()
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 ()
* 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 ()
Improved wording
2020-02-20 23:22:40 -07:00
Christian Legnitto
8925f64983
Temporarily disable interface tests ()
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 ()
* 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 () 2020-02-20 22:28:27 -07:00
Christian Legnitto
b63a44e0f8
Add futures dependency ()
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 () 2020-02-12 23:55:45 -07:00
Nathan Wilson
389fd5ca19
Add bson crate's ObjectId to juniper foreign scalar type integrations () 2020-02-12 23:49:50 -07:00
Genna Wingert
4ccb129fa2
Update juniper_hyper to hyper 0.13 and add async resolution ()
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 () 2020-02-12 23:46:59 -07:00
James H
df2740393a
Add dataloader explaination to book () 2020-02-12 23:45:15 -07:00
Oleksandr
dea15f489d
Disable default features for rocket integration () 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 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 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
Christian Legnitto
6aebe5a30f Add features to juniper_benchmarks 2020-01-20 23:23:42 -08:00
Christian Legnitto
ad3c7ef6d9 Add tests with async features enabled to CI 2020-01-20 23:05:08 -08:00
Christian Legnitto
7681f42933 Merge remote-tracking branch 'upstream/master' into async-await 2020-01-20 22:47:05 -08:00
iancormac84
001cabc9e9 Changes. 2020-01-18 17:14:35 -08:00
iancormac84
c6ac0bdcef Add changes from async-await branch to Changelog. 2020-01-18 17:14:35 -08:00
Christian Legnitto
fc7827605c Release juniper_warp 0.5.2 2020-01-18 17:14:35 -08:00
Christian Legnitto
0542c3aeac Release juniper_rocket 0.5.2 2020-01-18 17:14:35 -08:00
Christian Legnitto
37d2b195bc Release juniper_iron 0.6.2 2020-01-18 17:14:35 -08:00