Commit graph

72 commits

Author SHA1 Message Date
Magnus Hallin
96c1ad0ef9 Use bencher crate to run benchmarks on stable rust 2016-12-26 12:16:19 +01:00
Magnus Hallin
7a0439bad7 Add changelog 2016-12-23 23:58:21 +01:00
Magnus Hallin
ebda74ba91 Refactor IntoResolvable (previously IntoFieldResult)
It now supports a blanket implementation for all GraphQLTypes, and
resolving into new context types.
2016-12-23 13:12:12 +01:00
Magnus Hallin
6b8f4c9562 Move context type parameter to associated type of GraphQLType 2016-12-22 16:25:44 +01:00
Magnus Hallin
885fe8b09b Update API documentation link to our own
Fixes #6.
2016-12-18 19:52:14 +01:00
Magnus Hallin
b61ca14f53 Pass the executor immutably through resolution
The executor is now using internal mutability through RwLock to make
it thread-safe.
2016-12-11 20:09:52 +01:00
Magnus Hallin
cd33093dee Release version 0.5.3 2016-12-05 22:23:00 +01:00
Magnus Hallin
f3e0acc742 Add helper traits/macros to produce FieldResults 2016-12-05 22:18:42 +01:00
Magnus Hallin
3b71755521 Expose RuleError from crate root 2016-12-05 22:18:31 +01:00
Magnus Hallin
ff00b0c952 Merge pull request #4 from theduke/patch-1
Add cargo and API docs links
2016-12-05 21:22:14 +01:00
theduke
358f344fda Add cargo and API docs links 2016-12-05 17:06:09 +01:00
Magnus Hallin
46764de1a6 Add support for return statements in field resolver functions 2016-11-30 21:49:50 +01:00
Magnus Hallin
ca3832c6c2 Ignore InnerT when implementing Send/Sync for RootNode (unsafe) 2016-11-30 20:57:18 +01:00
Magnus Hallin
e5167e1aae Relax Iron handler context trait requirements 2016-11-30 20:50:08 +01:00
Magnus Hallin
f7123ed9db Cross off some tasks on the 1.0 todo 2016-11-13 10:41:46 +01:00
Magnus Hallin
7effd11348 Update readme to 0.5.2 2016-11-12 22:58:46 +01:00
Magnus Hallin
0ea61fa493 Add interface and union tests 2016-11-12 22:52:34 +01:00
Magnus Hallin
c555241978 Add executor tests, fix a bunch of bugs 2016-11-12 17:49:04 +01:00
Magnus Hallin
251f957a7f Add directive tests, fix some bugs 2016-11-12 11:03:42 +01:00
Magnus Hallin
478c7b7819 Add enum input value tests and improve validation 2016-11-12 10:24:23 +01:00
Magnus Hallin
b3a750ffa5 Add input variable tests, fix a bunch of related bugs 2016-11-09 21:48:21 +01:00
Magnus Hallin
ba7839f321 Use object shorthand in tests and documentation 2016-10-20 20:56:23 +02:00
Magnus Hallin
2b1c9cf906 Remove travis-cargo 2016-10-20 20:44:28 +02:00
Magnus Hallin
f4887badeb Add documentation for the union helper macro 2016-10-20 20:43:47 +02:00
Magnus Hallin
8a51c33cb1 Improve type safety for instance resolvers 2016-10-20 20:26:52 +02:00
Magnus Hallin
612a3af001 Update syntax of interface instance resolvers 2016-10-19 21:43:11 +02:00
Magnus Hallin
d59e6c2f2e Stop tracking code coverage - kcov seems broken :( 2016-10-19 21:42:54 +02:00
Magnus Hallin
93deefb0ca Add union helper macro and tests 2016-10-19 20:58:36 +02:00
Magnus Hallin
59e5381a56 Add dependency note to crate doc 2016-10-16 22:21:44 +02:00
Magnus Hallin
857f53bf7a Depend on rustc-serialize 0.3 through semver 2016-10-16 22:19:45 +02:00
Magnus Hallin
8647d06e2e Fix interface macro syntax issues, add tests 2016-10-16 22:04:50 +02:00
Magnus Hallin
5caea1f908 Make FieldResults in field resolvers optional :D 2016-10-16 16:02:58 +02:00
Magnus Hallin
f3469dd270 Add object macro tests, fix minor issues 2016-10-16 14:15:03 +02:00
Magnus Hallin
88c967f804 Update 1.0 progress in README 2016-10-16 12:47:43 +02:00
Magnus Hallin
1295e42c58 Add field deprecation support and tests 2016-10-16 12:34:29 +02:00
Magnus Hallin
6cc124d075 Add tests for the general args macro 2016-10-16 11:33:51 +02:00
Magnus Hallin
9f5294ad3e Add input object helper macro 2016-10-09 21:44:40 +02:00
Magnus Hallin
c173554e42 Update readme badges 2016-10-09 16:56:11 +02:00
Magnus Hallin
42e4070e4b Extend scalar macro, add more tests 2016-10-09 15:37:51 +02:00
Magnus Hallin
ca6c637aa4 Update graphql_enum! documentation 2016-10-09 14:53:49 +02:00
Magnus Hallin
ac01b8e406 Extend enum macro, improve test coverage
This adds description and deprecation support to the graphql_enum!
macro, as well as extensive tests for all syntactical cases.
2016-10-09 14:30:29 +02:00
Magnus Hallin
ac51f09873 Bugfix argument description handling 2016-09-22 21:50:19 +02:00
Magnus Hallin
14ea90b790 Add object introspection tests 2016-09-22 20:16:26 +02:00
Magnus Hallin
5659a696f1 Test querying meta fields for mismatching types 2016-09-21 21:54:36 +02:00
Magnus Hallin
1e9c63e085 Add simple scalar introspection tests 2016-09-20 22:31:02 +02:00
Magnus Hallin
f9383a2a39 Add basic interface introspection tests 2016-09-20 21:50:53 +02:00
Magnus Hallin
8d9949e396 Add basic enum introspection tests
Contrived for now - will need to expand on the graphql_enum! macro to
include descriptions and deprecations
2016-09-19 22:06:02 +02:00
Magnus Hallin
3b6c69ca1e Move executor to its own library 2016-09-18 20:59:38 +02:00
Magnus Hallin
2be6f7416e Implement appears_in for concrete types in test schema 2016-09-18 17:23:31 +02:00
Magnus Hallin
c1b7bf8b46 Fix concrete resolution macro 2016-09-18 17:23:18 +02:00