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
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
tyranron
c51c675306
Use caret requirement for specifying 'futures' crate version
2020-02-04 09:57:47 +01: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
16f34db12f
Add async feature flag
2020-01-21 08:04:08 -08:00
Christian Legnitto
89e17abbb0
Fix makefiles for benchmarks
2020-01-20 23:42:57 -08:00
Christian Legnitto
7681f42933
Merge remote-tracking branch 'upstream/master' into async-await
2020-01-20 22:47:05 -08:00
danieleades
6fa6c20fa7
address clippy::all lints ( #486 )
2019-12-17 20:37:46 -08:00
Christoph Herzog
ce3cf45ca9
Rename object
proc macro to graphql_object
2019-11-16 02:57:48 +01:00
Christoph Herzog
9ce3d04007
Improve union
proc macro
...
* Rename to graphql_union
* Implement full-featured parsing and code generation
2019-11-16 02:33:18 +01:00
Christoph Herzog
5d270b7dea
Formatting
2019-11-15 22:18:38 +01:00
Christoph Herzog
f6c0bc7b02
Fix tests.
2019-11-15 21:44:08 +01: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
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
David Pedersen
1148c75a1d
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 {}
}
```
2019-11-06 23:08:25 +00:00
Christoph Herzog
ee9a82a817
Refacto graphql_union! macro to proc macro
2019-10-28 21:51:29 +01:00
tyranron
5d3ed9ac72
Remove async_closure feature usage
2019-10-10 00:07:10 +02:00
tyranron
639c29e91e
Upgrade futures-preview, tokio crates and remove unnecessary 'async_await' feature
2019-10-09 20:11:34 +02:00
Christoph Herzog
a14f0ddebd
WIP async/await implementation
2019-08-21 15:48:31 +02:00
Christoph Herzog
835dee1a8e
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-08-21 15:42:16 +02:00
Christian Legnitto
82b77594ce
Better test name
2019-07-25 03:42:11 +02:00
Christian Legnitto
4016d38d3d
Don't assume lookaheads are always fields
...
Fixes https://github.com/graphql-rust/juniper/issues/398 .
2019-07-25 03:42:11 +02:00
Christian Legnitto
5065eb2265
Fix lookahead when query contains multiple fields ( #393 )
...
Fixes https://github.com/graphql-rust/juniper/issues/371 .
2019-07-17 18:57:14 -07:00
Christoph Herzog
3396074274
(codegen) Implement newtype derive for scalars.
...
This commit implements a newtype style custom derive
for scalars via `#[derive(GraphQLScalarValue)]`, which now
supports both deriving a base enum scalar type and newtypes.
For newtypes, the `#[graphql(transparent)]` attribute is
required.
This commit:
* implements the derive
* adds integration tests
* updates the book
2019-06-25 18:55:45 +02:00
Christoph Herzog
29025e6cae
Rename impl_object to object.
2019-05-13 21:15:14 +02:00
Christoph Herzog
bf50c3eb86
Integration tests: impl_object refactor
2019-05-12 10:36:30 +02:00
Christian Legnitto
794568e463
Add release automation ( #346 )
...
See `RELEASING.md` for directions
2019-05-11 23:51:28 -07:00
Christoph Herzog
51bde5d94f
Remove old 2018 edition compatability tests.
...
Those are not needed anymore since the refactor to 2018 edition.
2019-05-02 20:18:21 +02:00
Christoph Herzog
2e011014ea
Formatting...
2019-05-02 18:44:56 +02:00
Christoph Herzog
5a4230e0d0
Remove macro_use + extern crate statements (2018 edition)
2019-05-02 18:44:56 +02:00
Christoph Herzog
54a1b64a79
Refactor code to 2018 edition with 'cargo fix --edition'
2019-05-02 18:44:56 +02:00
Christian Legnitto
327acbd1d9
Make integration tests skip release-related automation ( #341 )
2019-04-08 23:12:14 -07:00
Christoph Herzog
8c5b86e1c6
Allow specifying the Context type in #[derive(GraphQLObject)]
...
This commit extends the GraphQLObject derive to allow specifying a
custom context type.
2019-03-08 11:47:13 +01:00
Christian Legnitto
88c17db8c3
Rename ScalarValue derive
...
Fixes https://github.com/graphql-rust/juniper/issues/299 .
2018-12-19 20:17:17 +01:00
theduke
d015a3ca66
(ci) Check formatting with cargo fmt ( #302 )
...
This adds a new extra CI job for checking the formatting
with cargo fmt --check.
2018-12-19 10:27:49 -08:00
Christian Legnitto
aa80ec51bb
Add integration tests to release automation
...
We want their version bumped when juniper is released as
well.
2018-12-19 07:25:27 -08:00
Christoph Herzog
d43d5f2c2d
Fix cargo make config for 2018 edition test crate
2018-12-19 12:46:37 +01:00
Christoph Herzog
f02e427cab
Refactor integration test layout + add minimal 2018 edition test
...
* Add a new integration_tests subdirectory that holds integration tests
* Add a new, temporary (and really minimal) 2018 edition test crate
2018-12-19 03:53:33 +01:00