Magnus Hallin
a97ac59135
Add value literal macro
2017-08-08 22:27:45 +02:00
Magnus Hallin
0c3c219364
Refiy FieldError as a real datatype, add a structured data field
2017-08-08 21:26:51 +02:00
theduke
e740646b8c
Appveyor: Start using cargo-make.
...
Fixes #74
2017-08-07 22:28:37 +02:00
Sam Rijs
a0f2c3bbdd
Implement support for dynamic schemas
2017-08-07 22:15:09 +02:00
theduke
4124ca316c
Fix Appveyor badge in README
2017-08-07 22:12:11 +02:00
theduke
a826b22ffb
Update Readme and Cargo files for new repo url
2017-08-07 08:20:05 +02:00
theduke
2ca9baa441
Extracted iron/rocket crates and updated README.
...
Those now live in separate repos.
2017-08-07 08:20:05 +02:00
theduke
0c7e39f14e
Rust fmt the whole codebase
2017-08-06 21:15:08 +02:00
theduke
81ce7780fa
Codegen: implement description for custom derives + improve tests
...
Description attribute was available, but not actually used for derive
Object, InputObject and enum and the fields on input object.
Description is now properly set in each of those cases.
Also, tests for all three derives now properly verify the meta
information (name and description) for the derived GraphQLType.
2017-08-06 19:30:26 +02:00
theduke
6c45fba9bd
Fix some warnings in codegen + tests.
2017-08-06 19:30:26 +02: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
27048ae7cd
Merge pull request #73 from theduke/extract-iron
...
Extract Iron + Rocket
* Added juniper_iron crate
* Fixed up juniper_rocket crate
* Updated juniper/Cargo.toml
* Updated docs (readme, module docs)
* Export http integrator tests with export-test-schema feature
* Update CI tests (Use cargo-make )
* Format parts of the code base
* Update rocket to 0.3
2017-08-06 19:27:05 +02:00
theduke
b5d10f7722
Appveyor: only run rocket tests on nightly + msvc
...
Rocket is only supported on nightly, and rocket depends on Ring, which
does not support the gcc toolchain on Windows.
2017-08-06 19:16:21 +02:00
theduke
b22f7ff09a
Travis: stop allowing failures on nightly
...
Rocket only works on nightly + Not done on appveyor anyway
2017-08-06 18:31:17 +02:00
theduke
deacbd247e
Appveyor: temporarily disable cargo-make
...
Due to cargo-make bug...
2017-08-06 18:31:14 +02:00
theduke
619a2e57f9
Extraction of iron and rocket features into separate crates.
...
* Added juniper_iron crate
* Fixed up juniper_rocket crate
* Updated juniper/Cargo.toml
* Updated docs (readme, module docs)
* Export http integrator tests with export-test-schema feature
* Update CI tests (Use cargo-make )
* Format parts of the code base
2017-08-06 17:42:31 +02:00
Stanko Krtalić
2f62bc55e1
Split out rocket_integration into separate crate
...
This split still requires some work as the tests currently fail. This is
caused by the fact that some previously private modules can't be
accessed anymore, and that Rocket changet it's testing framework.
2017-08-06 13:41:55 +02:00
Stanko Krtalić
82ecd92090
Fix Rocket integration
...
Rocket's traits have changed in version 0.3.0, this commit adjusts
the existing implementation to be compatible with the latest
version of the traits.
2017-08-06 13:41:55 +02:00
theduke
714af0148c
Update CHANGELOG.md
...
Updated changelog with preliminary info about project restructure and custom derives.
2017-07-29 02:05:54 +02:00
Magnus Hallin
2ffa31bbc0
Merge pull request #55 from theduke/custom_derive
...
Restructure repo, add custom derive and integration tests.
2017-07-16 10:02:38 +02:00
theduke
359b348b97
Fix custom derive enum test.
2017-07-12 21:51:24 +02:00
theduke
c27d2c7a23
Make variant name for derived enums upper case by default
2017-07-12 21:51:24 +02:00
theduke
8a27cb3cb5
Fix appveyor (retrigger)
2017-07-12 21:51:24 +02:00
theduke
07bb75bd79
Fix test specs... for real
2017-07-12 21:51:24 +02:00
theduke
c008658052
Moving examples to juniper crate (for now)
2017-07-12 21:51:24 +02:00
theduke
4516790572
Fix up travis/appveyo specs
2017-07-12 21:51:24 +02:00
theduke
03f694fff6
Add nesting layer for codegen tests and add test for input_object derive
2017-07-12 21:51:24 +02:00
theduke
1312c6a026
Implement derive for input objects
2017-07-12 21:51:24 +02:00
theduke
e42228e2d5
Duplicating to_camel_case in codegen
2017-07-12 21:51:24 +02:00
theduke
2bcfc315ad
Use more descriptive variant variable names for enum deriving
2017-07-12 21:51:24 +02:00
theduke
35ea952961
Added new crates to workspace manifest.
2017-07-12 21:51:24 +02:00
theduke
3b42c97a4a
Add juniper_tests crate with integration tests
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
theduke
4ab2f20b8f
Restructure repository to Cargo workspace.
...
This makes it possible to:
* extract parser to own crate
* add juniper_codegen crate for custom derive stuff
* add integration tests
2017-07-12 21:51:24 +02:00
Magnus Hallin
9bab8d7bf7
Add Gitter badge
2017-07-12 11:47:54 +02:00
Sam Rijs
dc140a1ea0
Avoid boxing in MultiVisitor
2017-07-11 16:02:55 +02:00
Sam Rijs
d15f9bd162
Improve best-case performance for to_camel_case
2017-07-11 15:55:24 +02:00
Sam Rijs
902c55dade
Try to avoid cloning in Value::object
2017-07-11 15:54:56 +02:00
Magnus Hallin
9ca173f6bf
Add CI badges
2017-06-19 09:47:02 +02:00
Magnus Hallin
416861418b
Improve numerical stability in tests
2017-06-18 20:27:31 +02:00
Magnus Hallin
16001ffde8
Add Appveyor Windows CI build configuration
2017-06-18 20:27:31 +02:00
Magnus Hallin
a0ec8bae6d
Update readme link to documentation
2017-06-16 12:01:21 +02:00
Magnus Hallin
39159acb41
Fix broken crate metadata, prepare 0.8.1 release
2017-06-15 22:11:27 +02:00
Magnus Hallin
f336a9a97a
Fix tests after removing internal fields from introspection
2017-06-15 17:02:08 +02:00
Magnus Hallin
6aed455f03
Prepare for 0.8.0 release
2017-06-15 16:53:27 +02:00
Magnus Hallin
39e1cba49b
Rename the empty mutation type and hide __ fields from introspection
...
This makes GraphiQL stop emitting deprecation warnings
2017-06-15 16:22:52 +02:00
Magnus Hallin
ab7e262f7c
Update to latest GraphiQL
2017-06-15 16:12:36 +02:00
Magnus Hallin
8e104204a3
Drop i64 support, add i32 support
...
This is a breaking change, but having i64 support is both against the
specification and a bad idea when interfacing with e.g. JavaScript or
transmitting it via JSON
2017-06-15 10:48:58 +02:00
Magnus Hallin
cecf50735b
Limit incoming integers to the 32 bit signed range
...
Also related to #49 - unsigned integers will no longer be represented
as floats.
While this spec might break clients, it makes Juniper follow the GraphQL
specification more closely
2017-06-15 10:37:30 +02:00