Commit graph

288 commits

Author SHA1 Message Date
Christoph Herzog
3d9fc8e347 examples/warp_async: update dependency paths 2019-10-09 22:22:13 -07:00
Christoph Herzog
92871a9253 Update warp for async 2019-10-09 22:22:13 -07:00
Christoph Herzog
56a4f2558a WIP async/await implementation 2019-10-09 22:22:13 -07:00
Kai Ren
2cf991697c Upgrade futures-preview, tokio crates and remove unnecessary 'async_await' feature () 2019-10-09 22:14:45 -07: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
Christian Legnitto
dbbceae643 Release juniper 0.14.0 2019-09-29 19:04:31 -07:00
Christian Legnitto
c4d7661b3b Release juniper_codegen 0.14.0 2019-09-29 19:03:54 -07:00
Christian Legnitto
02fd164e96
Update url dependency () 2019-09-29 18:47:37 -07:00
James Harton
5be66654a9 Improve visitability of lookahead types. ()
I've added methods which allow Juniper users to visit all nodes of a lookahead tree so that they can be used for query generation.
2019-09-29 18:00:45 -07:00
nWacky
b61aa900b1 Add subscription support to query parser () 2019-09-29 17:43:56 -07:00
Christian Legnitto
b08d1af7a4 Replace futures::future::FutureExt::boxed with Box::pin 2019-08-26 21:37:38 -07:00
Christoph Herzog
37e35c0180 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-26 20:57:25 -07:00
Graeme Coupar
ab37f647db Fix juniper issue 2019-08-22 10:38:01 +01:00
Christoph Herzog
4940085c44 Use Custom BoxFuture type + prepare new resolve result value 2019-08-21 15:51:18 +02:00
Christoph Herzog
acd1442cea Experimental benchmarks 2019-08-21 15:48:31 +02:00
Christoph Herzog
ef3720cb67 examples/warp_async: update dependency paths 2019-08-21 15:48:31 +02:00
Christoph Herzog
f730829c1b Update warp for async 2019-08-21 15:48:31 +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
752584fbbd
Add myself as an author 2019-07-29 08:16:50 -07:00
Christian Legnitto
48c26a26b3 Release juniper 0.13.1 2019-07-29 08:08:05 -07:00
Christian Legnitto
6b32e90899 Release juniper_codegen 0.13.2 2019-07-29 08:07:32 -07:00
Christian Legnitto
644d6042ae Release juniper_codegen 0.13.1 2019-07-29 08:06:22 -07:00
Christian Legnitto
49fc100753
Add to changelog () 2019-07-29 08:57:32 -06: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
Christoph Herzog
049ba0c9dc (codegen) Respect mut modifier on arguments in object proc macro
This commit forwards `mut` declaration of arguments in a #[juniper::object] macro invocation
to the generated code.

Closes 
2019-07-24 02:37:31 +02:00
Christoph Herzog
9e849fe512 Fix broken doc link.
Closes 
2019-07-22 21:49:02 +02:00
Christian Legnitto
54f98f46db Release juniper 0.13.0 2019-07-19 14:01:21 -07:00
Christian Legnitto
efe22b7ffd Release juniper_codegen 0.13.0 2019-07-19 14:01:21 -07:00
Christian Legnitto
5065eb2265
Fix lookahead when query contains multiple fields ()
Fixes https://github.com/graphql-rust/juniper/issues/371.
2019-07-17 18:57:14 -07:00
Christian Legnitto
7bedea05ed
Clean up test warnings () 2019-07-15 21:47:16 -07:00
Peter Majchrak
3373935046 Add support for "dyn" trait object syntax ()
* Use "dyn" for TraitObjects

* Cleanup after adding "dyn" support

* Add entry to CHANGELOG.md
2019-06-27 08:44:30 -07:00
Christoph Herzog
97e1005178 Clean up ScalarValue transparent derive argument handling and documentation. 2019-06-25 18:55:45 +02: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
jekshmek
675f34bc46 Fix test_invalid_field juniper::http () 2019-06-24 23:08:36 -07:00
Kai Ren
49f723a3dd Optimize .unwrap_or() and .expect() usages () 2019-06-18 23:12:13 -04:00
Jean Mertz
3456786463 Implement Serialize/Deserialize for ID scalar
As per the unofficial Rust API guidelines:

https://rust-lang-nursery.github.io/api-guidelines/interoperability.html#data-structures-implement-serdes-serialize-deserialize-c-serde
2019-05-23 15:49:15 +02:00
Andrey Kutejko
5b9a0bd31b Split Query and Database types in example schema () 2019-05-18 09:07:51 -07:00
Christian Legnitto
9c9e3da72d Release juniper 0.12.0 2019-05-16 19:03:21 -07:00
Christian Legnitto
8a047e8702 Release juniper_codegen 0.12.0 2019-05-16 19:01:52 -07:00
theduke
d47aa990ba Remove GraphQLType impl for unit () type ()
This impl can cause weird runtime errors and serves
no real practical purpose.

Removing the impl is a breaking change but is the only
way to error out at runtime.
2019-05-16 07:22:13 -07:00
David Pedersen
2518eff0c9 Expose the operation name from juniper_rocket::GraphQLRequest ()
Measuring the runtime of queries will only tell if there are slow
queries. To find out which queries are slow you need the operation name.

Getting the operation name was previously not possible from a Rocket
request handler. This fixes that.
2019-05-15 07:26:40 -07:00
Christoph Herzog
166c6d00c5 (tooling) Update release config to bump doc_root. 2019-05-15 11:20:51 +02:00
Yusuke Sasaki
0ae2475bb8 add #[doc(html_root_url)] to all published crates 2019-05-15 11:20:51 +02:00
Christoph Herzog
29025e6cae
Rename impl_object to object. 2019-05-13 21:15:14 +02:00
Christoph Herzog
520cac29a0
(codegen) Allow #[deprecated] on field in impl_object 2019-05-13 12:37:22 +02:00
Christoph Herzog
db0d5952dd
Formatting 2019-05-13 12:35:14 +02:00
Christoph Herzog
ffe00b9fa3
Fix release tooling for juniper_codegen
Patch juniper_codegen dev dependency on juniper.
2019-05-12 21:31:15 +02:00
Christoph Herzog
de12e0eba5
Formatting... 2019-05-12 10:49:46 +02:00