Commit graph

663 commits

Author SHA1 Message Date
Christoph Herzog
50605ee73e Duplicate juniper_rocket for async
This is required because rocket only supports futures on a git branch.
2019-11-15 21:52:22 +01:00
Christoph Herzog
38c3e28f22 Disable async tests on CI 2019-11-15 21:44:24 +01:00
Christoph Herzog
f6c0bc7b02 Fix tests. 2019-11-15 21:44:08 +01:00
Christoph Herzog
b634ad39eb Various async feature fixes for the type system 2019-11-15 21:23:59 +01:00
Christoph Herzog
ad16093b88 Refactor GraphQLType::resolve to return Result<>
This unifies the output type of all resolvers.

Required for future step of making the output a associated type.
2019-11-14 09:51:32 +01:00
Christoph Herzog
6fcdd32c84 Remove GraphQLType ScalarValue default
This is more hinderance than useful.
2019-11-14 01:31:14 +01:00
Christoph Herzog
36c71d7162 chore: Remove ScalarRefValue trait
The trait was introduced while introducing generic scalars, but is not
actually required or useful. It's functionality is fully covered by
methods on the `ScalarValue` trait.

It also forced a lof of for<'a> ScalarRefValue bounds all over the code,
complicating signatures a lot.

It is completely removed now.
2019-11-14 01:21:41 +01:00
nWacky
eb85fefc36 Get back panic in macro [skip ci] 2019-11-13 14:26:25 +00:00
nWacky
2144ad0d7d Remove async-trait [skip ci] 2019-11-13 14:26:25 +00:00
nWacky
a5580a939d Update most crates to futures 0.3, add todos on not updated crates 2019-11-12 12:04:09 +00:00
nWacky
cf99495368 Replace all futures::BoxFuture with juniper::BoxFuture 2019-11-12 12:04:09 +00:00
nWacky
237e69c036 Rebase async_await onto master (#454)
* feat: Raw identifier support in object macro

This commit implements raw identifier (`r#name`) support
for field names (methods) and arguments in the `object` proc macro.

Eg:

```rust
impl T {
  fn r#type(r#trait: String) -> bool {}
}
```

* Rebase onto master

* Fix merge [skip ci]
2019-11-08 09:46:48 +00:00
Christian Legnitto
b133a0f3c2
Merge pull request #452 from instrumentisto/async-await-resolve-some-todos
Resolve some todos in async-await branch
2019-11-06 18:17:50 -08:00
nWacky
778606c050
Fix bad merge [skip ci] 2019-11-06 12:01:50 +03:00
nWacky
e344f1c06f
Merge branch 'async-await-resolve-some-todos' of https://github.com/instrumentisto/juniper into async-await-resolve-some-todos
# Conflicts:
#	juniper/src/macros/tests/args.rs
[skip ci]
2019-11-06 11:46:21 +03:00
nWacky
09d9513da9
Rebase onto master 2019-11-06 11:45:19 +03:00
nWacky
4834349310
Rebase onto async-await 2019-11-06 11:21:06 +03:00
nWacky
e151026cfa
Merge branch 'async-await-resolve-some-todos' of https://github.com/instrumentisto/juniper into async-await-resolve-some-todos
# Conflicts:
#	examples/warp_async/Cargo.toml
#	juniper/src/macros/tests/args.rs
#	juniper_codegen/src/util.rs
[skip ci]
2019-11-05 12:10:04 +03:00
nWacky
99c0d26887
Comment out attr_arg_descr and attr_arg_descr_collapse tests 2019-11-05 12:06:08 +03:00
nWacky
ec76bf5ff2
Fix cargo.toml in warp_async 2019-11-05 11:20:08 +03:00
nWacky
7135c07ae5
Format 2019-11-05 11:20:08 +03:00
nWacky
9506272b82
Merge import in async_await 2019-11-05 11:20:07 +03:00
nWacky
554ba34df1
Format 2019-11-05 11:20:07 +03:00
nWacky
dbcaf30ec3
Rebase onto master 2019-11-05 11:20:06 +03:00
nWacky
e3c12e31fc
Format 2019-11-05 11:14:53 +03:00
nWacky
00dd1dc391
Resolve better error message with field/type name todo, update other panics with query name 2019-11-05 11:14:20 +03:00
nWacky
b1970aecd2
Remove useless todo 2019-11-05 11:14:20 +03:00
nWacky
52c3e281f3
Refactor GraphQLTypeAsync to use async-trait 2019-11-05 11:14:20 +03:00
nWacky
820f472f2c
Add resolve_into_type_async 2019-11-05 11:14:19 +03:00
nWacky
e03e525645
Start adding async-trait to GraphQLTypeAsync 2019-11-05 11:14:19 +03:00
nWacky
bfe6c7ae97
Remove __juniper_extract_generic macro 2019-11-05 11:14:18 +03:00
nWacky
d22b5c68f3
Resolve RFC 2565 related todos 2019-11-05 11:14:18 +03:00
Christian Legnitto
c24687d8bc
Release juniper_warp 0.5.1 2019-11-05 11:14:17 +03:00
Christian Legnitto
c298697619
Release juniper_rocket 0.5.1 2019-11-05 11:14:17 +03:00
Christian Legnitto
bf888261cd
Release juniper_iron 0.6.1 2019-11-05 11:14:17 +03:00
Christian Legnitto
fed6950498
Release juniper_hyper 0.5.1 2019-11-05 11:14:16 +03:00
Christian Legnitto
191468bf04
Release juniper 0.14.1 2019-11-05 11:14:16 +03:00
Christian Legnitto
7b18bd245d
Release juniper_codegen 0.14.1 2019-11-05 11:14:15 +03:00
Christian Legnitto
bb99076326
Update CHANGELOG.md 2019-11-05 11:14:15 +03:00
Christian Legnitto
665c3d2eb6
Make EmptyMutation Send 2019-11-05 11:14:15 +03:00
Christian Legnitto
7230efc3b9
Update CHANGELOG.md 2019-11-05 11:14:14 +03:00
Andrey Kutejko
779208eea5
Bubble up scalar error (#434) 2019-11-05 11:14:14 +03:00
nWacky
3e5e2aeeb7
Format 2019-11-04 19:13:06 +03:00
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