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
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
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
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