Commit graph

608 commits

Author SHA1 Message Date
Blaž Hrastnik
dcbb74155d juniper_codegen: Drop regex & lazy_static dependencies (#424)
* Replace regex & lazy_static with a simple check.
2019-09-07 21:19:37 -07:00
theduke
625955ab79
Merge pull request #420 from LegNeato/async-await
Replace `futures::future::FutureExt::boxed` with `Box::pin`Rebase on master and
2019-08-27 09:24:49 +02: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
theduke
35fc8d8e2a
Merge pull request #417 from obmarg/async-await
Update juniper_rocket for async.
2019-08-22 11:54:33 +02:00
Graeme Coupar
ab37f647db Fix juniper issue 2019-08-22 10:38:01 +01:00
Graeme Coupar
66cab53345 Fix the rest of the rocket stuff 2019-08-21 16:47:47 +01:00
Graeme Coupar
6c54f05efb Update for latest rust nightly 2019-08-21 16:34:57 +01:00
Graeme Coupar
1d7ee1bcb1 Some more updates to juniper_rocket 2019-08-21 16:34:57 +01:00
Graeme Coupar
bb582e998c Update to support async branch of rocket. 2019-08-21 16:34:49 +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
746bdb5aae Add warp_async example 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
theduke
a3caf126b0 derive: Upgrade syn/quote/proc_macro dependencies to 1.0 (#413) 2019-08-18 09:12:25 -07:00
Christian Legnitto
752584fbbd
Add myself as an author 2019-07-29 08:16:50 -07:00
Christian Legnitto
237febe328 Release juniper_warp 0.4.1 2019-07-29 08:12:47 -07:00
Christian Legnitto
9909b2dc1b Release juniper_rocket 0.4.1 2019-07-29 08:11:42 -07:00
Christian Legnitto
e8da141925 Release juniper_iron 0.5.1 2019-07-29 08:10:37 -07:00
Christian Legnitto
554b3633cf Release juniper_hyper 0.4.1 2019-07-29 08:09:14 -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 #404 to changelog (#406) 2019-07-29 08:57:32 -06: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
Christoph Herzog
55a9a0a2ce (ci) Fix release automation check by pinning cargo-release to older version 2019-07-24 02:37:55 +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 #399
2019-07-24 02:37:31 +02:00
Christoph Herzog
9e849fe512 Fix broken doc link.
Closes #400
2019-07-22 21:49:02 +02:00
Christian Legnitto
90886c0fd2 Release juniper_warp 0.4.0 2019-07-19 14:27:08 -07:00
Christian Legnitto
60ba06f846 Release juniper_rocket 0.4.0 2019-07-19 14:01:21 -07:00
Christian Legnitto
8fc1808f14 Release juniper_iron 0.5.0 2019-07-19 14:01:21 -07:00
Christian Legnitto
6d7c72dda6 Release juniper_hyper 0.4.0 2019-07-19 14:01:21 -07: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
David Pedersen
f2fd945559 Mention juniper-from-schema in README (#395) 2019-07-19 13:19:42 -07: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
Christian Legnitto
7bedea05ed
Clean up test warnings (#392) 2019-07-15 21:47:16 -07:00
Y0hy0h
85fec1ca94 Improve quality of Gitter badge in README 2019-07-09 14:29:49 +02:00
Peter Majchrak
28ca8fe006 Cleanup after #385 (#386) 2019-06-27 15:32:36 -07:00
Peter Majchrak
3373935046 Add support for "dyn" trait object syntax (#385)
* 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
theduke
7e0e7beaa7 Allow scalars without #[repr(transparent)] 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
Christoph Herzog
a84dbf710d (ci) Fix cargo path in check_release_automation task 2019-06-25 17:40:37 +02:00
Christoph Herzog
522a38b0b1 (ci) Specify CARGO_HOME env var to ensure conformity 2019-06-25 17:40:37 +02:00
Christian Legnitto
6f051f9fcd (ci) Fix CI builds
* Update cargo-make
* Quote path on windows
2019-06-25 17:40:37 +02:00