Dirkjan Ochtman
62d015cf86
Upgrade juniper_codegen dependencies ( #231 )
...
* Upgrade `juniper_codegen` to `syn-0.14`/`quote-0.6`
* Upgrade `juniper_codegen` to `regex-1.0`
* Fix comment typos in enum derive code
* Stop testing rust-1.21.0, replace with rust-1.23.0. rust-1.21.0 breaks with the newer dependencies
2018-08-27 14:51:12 -07:00
Christoph Herzog
56f71e934b
Format code
2018-07-19 16:18:49 +02:00
piperRyan
9080448da2
Add Compile Time Check For "Invalid" Names ( #170 )
2018-05-23 00:25:20 -07:00
Christoph Herzog
05c1011d83
(juniper_codegen) Upgrade syn + quote
2018-05-03 01:49:36 +02:00
Christoph Herzog
d00e74bb4e
Format entire codebase with rustfmt
2018-01-13 12:25:55 +01:00
theduke
7b066ef1f9
(docs) Add short crate docs to codegen.
2017-12-02 02:35:08 +01:00
theduke
6c7dc0493d
Rename custom derive modules for consistency.
...
codegen/enums -> codegen/derive_enum
codegen/input_objects -> codegen/derive_input_object
tests/enums -> tests/derive_enum
tests/input_objects -> tests/derive_input_object
2017-08-06 19:30:26 +02:00
theduke
e835a5e019
Codegen: Add custom derive for GraphQLObject
...
This adds a simple derive for objects that implements GraphQLType for
structs which do not require any manual resolvers.
This could be extended in the future to provide a custom resolver
function via an attribute.
Also adds an integration test.
2017-08-06 19:30:26 +02:00
theduke
1312c6a026
Implement derive for input objects
2017-07-12 21:51:24 +02:00
theduke
d33db983de
Add juniper_codegen crate.
...
This crate will contain multiple custom_derive implementations.
For now, only enum is supported.
2017-07-12 21:51:24 +02:00