Commit graph

770 commits

Author SHA1 Message Date
nWacky
e2ebaeec3a
Merge import in async_await 2019-11-04 19:11:12 +03:00
nWacky
503bb6357f
Format 2019-11-04 19:07:25 +03:00
nWacky
09d1077735
Merge branch 'async-await-resolve-some-todos' of https://github.com/instrumentisto/juniper into async-await-resolve-some-todos 2019-11-04 18:53:42 +03:00
nWacky
2404b81008
Rebase onto master 2019-11-04 18:52:26 +03:00
nWacky
afd92cd7fe
Format 2019-11-04 16:55:36 +03:00
nWacky
91dc55bcbb
Resolve better error message with field/type name todo, update other panics with query name 2019-11-04 16:42:32 +03:00
nWacky
9478b6c590
Remove useless todo 2019-11-04 11:40:52 +03:00
Christian Legnitto
34c380b7af cargo fmt 2019-11-03 22:23:46 -08:00
Christian Legnitto
cdf9fb333d Re-enable introspection tests.
These were fixed by previous commits.
2019-11-03 22:23:07 -08:00
Christian Legnitto
0929bad163 Fix non-async resolvers with returns in the async case 2019-11-03 22:14:44 -08:00
Christian Legnitto
ef2277c80f Update delay to latest tokio usage 2019-11-03 22:08:33 -08:00
Christian Legnitto
560a172587 Make resolvers with returns work again
Note that this only fixes the non-async case
2019-11-03 22:07:40 -08:00
nWacky
9e2a63ab81
Refactor GraphQLTypeAsync to use async-trait 2019-11-01 19:37:55 +03:00
nWacky
737c4c7184
Add resolve_into_type_async 2019-11-01 17:51:25 +03:00
nWacky
563e44c2ac
Merge remote-tracking branch 'upstream/async-await' into async-await 2019-11-01 16:22:39 +03:00
nWacky
321c3af38d Use name_of_type in macro [skip ci] 2019-11-01 12:59:16 +00:00
nWacky
245c351a73 Revert juniper::object name detection back to master [skip ci] 2019-11-01 12:59:16 +00:00
nWacky
13bbbe254b
Start adding async-trait to GraphQLTypeAsync 2019-11-01 14:26:08 +03:00
nWacky
0f4e9982c5
Remove __juniper_extract_generic macro 2019-11-01 13:43:01 +03:00
nWacky
bd3d289d59
Resolve RFC 2565 related todos 2019-11-01 13:29:11 +03:00
Christoph Herzog
ee9a82a817 Refacto graphql_union! macro to proc macro 2019-10-28 21:51:29 +01:00
Christian Legnitto
91a9752166 Release juniper_warp 0.5.1 2019-10-24 16:03:00 -07:00
Christian Legnitto
7c98eafcbb Release juniper_rocket 0.5.1 2019-10-24 16:01:03 -07:00
Christian Legnitto
0421f9a88e Release juniper_iron 0.6.1 2019-10-24 15:59:31 -07:00
Christian Legnitto
012c0b11de Release juniper_hyper 0.5.1 2019-10-24 15:58:07 -07:00
Christian Legnitto
c434bddc91 Release juniper 0.14.1 2019-10-24 15:57:16 -07:00
Christian Legnitto
252f7b4353 Release juniper_codegen 0.14.1 2019-10-24 15:56:44 -07:00
Christian Legnitto
6b7977b8dd
Update CHANGELOG.md 2019-10-24 15:55:37 -07:00
Christian Legnitto
8628dddaf0 Make EmptyMutation Send 2019-10-24 20:33:48 +02:00
Christian Legnitto
9be274ae77
Update CHANGELOG.md 2019-10-23 21:38:37 -07:00
Andrey Kutejko
dd424f3579 Bubble up scalar error (#434) 2019-10-23 18:04:48 -07:00
Christian Legnitto
c903d5e004
Merge pull request #438 from tyranron/remove-async-closure-feature
* Upgrade futures-preview, tokio crates and remove unnecessary 'async_await' feature

* Remove async_closure feature usage

* Fix type inferring for trivial resolver code

Additionally:
- fix inconsistencies after merge with master
2019-10-10 07:22:52 -07:00
tyranron
e2903cf0f7
Fix type inferring for trivial resolver code
Additionally:
- fix inconsistencies after merge with master
2019-10-10 14:50:10 +02:00
tyranron
635bf1ff34
Merge branch 'async-await' into remove-async-closure-feature
# Conflicts:
#	examples/warp_async/src/main.rs
#	integration_tests/async_await/src/main.rs
#	juniper/src/lib.rs
#	juniper_benchmarks/src/lib.rs
#	juniper_rocket/src/lib.rs
#	juniper_warp/src/lib.rs
2019-10-10 13:20:00 +02:00
Christian Legnitto
3ef772e559
Merge pull request #437 from LegNeato/async-await-rebase
Rebase async await on master
2019-10-09 22:45:57 -07:00
Christian Legnitto
2884ef313b
Merge branch 'async-await' into async-await-rebase 2019-10-09 22:43:07 -07:00
Kai Ren
8d33e8db12 Upgrade futures-preview, tokio crates and remove unnecessary 'async_await' feature (#436) 2019-10-09 22:22:13 -07:00
Christian Legnitto
045c1870ef Replace futures::future::FutureExt::boxed with Box::pin 2019-10-09 22:22:13 -07:00
Christoph Herzog
c270c038ef Enable merge_imports rustfmt setting.
style: Enable rustfmt merge_imports and format

This commit enables the rustfmt merge_imports setting
and formats the whole code base accordingly.

Note that the setting is not stable yet, but will be with Rust 1.38.

In the meantime, running fmt on stable will just leave the
changes alone so no problems should occur.
2019-10-09 22:22:13 -07:00
Graeme Coupar
67480d176b Fix juniper issue 2019-10-09 22:22:13 -07:00
Graeme Coupar
47e7003a7b Fix the rest of the rocket stuff 2019-10-09 22:22:13 -07:00
Graeme Coupar
1e348ea1bd Update for latest rust nightly 2019-10-09 22:22:13 -07:00
Graeme Coupar
65a641c7d6 Some more updates to juniper_rocket 2019-10-09 22:22:13 -07:00
Graeme Coupar
8033deba12 Update to support async branch of rocket. 2019-10-09 22:22:13 -07:00
Christoph Herzog
4a4d7407aa Use Custom BoxFuture type + prepare new resolve result value 2019-10-09 22:22:13 -07:00
Christoph Herzog
c113ef6171 Experimental benchmarks 2019-10-09 22:22:13 -07:00
Christoph Herzog
3d9fc8e347 examples/warp_async: update dependency paths 2019-10-09 22:22:13 -07:00
Christoph Herzog
57ecd4b471 Add warp_async example 2019-10-09 22:22:13 -07:00
Christoph Herzog
92871a9253 Update warp for async 2019-10-09 22:22:13 -07:00
Christoph Herzog
56a4f2558a WIP async/await implementation 2019-10-09 22:22:13 -07:00