Commit graph

1040 commits

Author SHA1 Message Date
dependabot-preview[bot]
dd69375e59
Upgrade 'env_logger' crate to 0.8 version (#789)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-19 12:23:17 +03:00
Igor Pashev
c964fd805c
Allow disabling case conversion (#765) 2020-10-13 12:34:36 -04:00
Stijn Frishert
68210f54ca
impl Display for ID (#783) 2020-10-10 07:17:33 -07:00
dependabot-preview[bot]
746aff34a5
Update actix-cors requirement from 0.3.0 to 0.4.1 (#778)
Updates the requirements on [actix-cors](https://github.com/actix/actix-extras) to permit the latest version.
- [Release notes](https://github.com/actix/actix-extras/releases)
- [Commits](https://github.com/actix/actix-extras/compare/cors-v0.3.0...cors-v0.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-08 02:57:47 -10:00
Kai Ren
46cde4fb85
Fix parsing f64 from Scalar::Int (#777) 2020-10-07 14:40:36 -10:00
tyranron
f914322ef4
Mention #[graphql_interface] macro in CHANGELOG (#682) 2020-10-07 10:20:11 +02:00
tyranron
6d4a0a8709
Fill up missing docs for #[graphql_interface] macro (#682) 2020-10-07 10:09:01 +02:00
tyranron
b1a0366112
Fix interfaces description in Book (#682, #658) 2020-10-06 11:58:30 +02:00
Kai Ren
cbf16c5a33
Make interfaces great again! (#682)
* Bootstrap

* Upd

* Bootstrap macro

* Revert stuff

* Correct PoC to compile

* Bootstrap #[graphql_interface] expansion

* Bootstrap #[graphql_interface] meta parsing

* Bootstrap #[graphql_interface] very basic code generation [skip ci]

* Upd trait code generation and fix keywords usage [skip ci]

* Expand trait impls [skip ci]

* Tune up objects [skip ci]

* Finally! Complies at least... [skip ci]

* Parse meta for fields and its arguments [skip ci]

- also, refactor and bikeshed new macros code

* Impl filling fields meta and bootstrap field resolution [skip ci]

* Poking with fields resolution [skip ci]

* Solve Rust's teen async HRTB problems [skip ci]

* Start parsing trait methods [skip ci]

* Finish parsing fields from trait methods [skip ci]

* Autodetect trait asyncness and allow to specify it [skip ci]

* Allow to autogenerate trait object alias via attribute

* Support generics in trait definition and asyncify them correctly

* Temporary disable explicit async

* Cover arguments and custom names/descriptions in tests

* Re-enable tests with explicit async and fix the codegen to satisfy it

* Check implementers are registered in schema and vice versa

* Check argument camelCases

* Test argument defaults, and allow Into coercions for them

* Re-enable markers

* Re-enable markers and relax Sized requirement on IsInputType/IsOutputType marker traits

* Revert 'juniper_actix' fmt

* Fix missing marks for object

* Fix subscriptions marks

* Deduce result type correctly via traits

* Final fixes

* Fmt

* Restore marks checking

* Support custom ScalarValue

* Cover deprecations with tests

* Impl dowcasting via methods

* Impl dowcasting via external functions

* Support custom context, vol. 1

* Support custom context, vol. 2

* Cover fallible field with test

* Impl explicit generic ScalarValue, vol.1

* Impl explicit generic ScalarValue, vol.2

* Allow passing executor into methods

* Generating enum, vol.1

* Generating enum, vol.2

* Generating enum, vol.3

* Generating enum, vol.3

* Generating enum, vol.4

* Generating enum, vol.5

* Generating enum, vol.6

* Generating enum, vol.7

* Generating enum, vol.8

* Refactor juniper stuff

* Fix juniper tests, vol.1

* Fix juniper tests, vol.2

* Polish 'juniper' crate changes, vol.1

* Polish 'juniper' crate changes, vol.2

* Remove redundant stuf

* Polishing 'juniper_codegen', vol.1

* Polishing 'juniper_codegen', vol.2

* Polishing 'juniper_codegen', vol.3

* Polishing 'juniper_codegen', vol.4

* Polishing 'juniper_codegen', vol.5

* Polishing 'juniper_codegen', vol.6

* Polishing 'juniper_codegen', vol.7

* Polishing 'juniper_codegen', vol.8

* Polishing 'juniper_codegen', vol.9

* Fix other crates tests and make Clippy happier

* Fix examples

* Add codegen failure tests, vol. 1

* Add codegen failure tests, vol. 2

* Add codegen failure tests, vol.3

* Fix codegen failure tests accordingly to latest nightly Rust

* Fix codegen when interface has no implementers

* Fix warnings in book tests

* Describing new interfaces in Book, vol.1

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-10-05 21:21:01 -10:00
Camille TJHOA
1e733cc793
Fix context in quickstart (#772) 2020-10-01 07:14:01 -10:00
Kunjan Dalal
8b79f5b1f1
Update Actix to the latest version (#761)
* actix updated to latest version and actix rt removed

* actix rt added back as dev dep
2020-09-12 06:32:15 -10:00
Chris
ef82b5a9db
update ws keep-alive docs (#762) 2020-09-12 01:37:26 -04:00
Thomas Radloff
092a9851fb
Fix version. (#755)
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-09-10 22:20:27 -10:00
Jerel Unruh
0bf5e3cfa9
Reduce juniper_graphql_ws default KA to 15 seconds so that GQL clients don't disconnect (#756) 2020-09-10 12:02:18 -10:00
Kai Ren
dac4e648c1
Fix LookAheadMethods lifetimes (#757) 2020-09-10 12:00:58 -10:00
tyranron
a4f4d24677
Fix codegen failure tests on latest nightly Rust 2020-09-10 17:15:51 +03:00
tyranron
0f400c3799
Fmt juniper_actix crate 2020-09-02 22:52:15 +03:00
Kai Ren
a684e1d91c
Re-enable marks-based static checks in code generated by macros (#751)
- add associated type to IntoResolvable and IntoFieldResult traits allowing to name the GraphQLType being resolved
- relax Sized requirement on some IsInputType and IsOutputType impls
2020-09-02 22:48:54 +03:00
Caio
2ab00f55d6
Remove unused dependencies (#747) 2020-08-28 20:34:11 -10:00
samuela
368ea6f96f
remove unnecessary moves (#740) 2020-08-19 19:09:43 -10:00
Mihai Dinculescu
45c16acc6e
Actix subscriptions tests (#736)
* Actix subscriptions tests

* Use LocalBoxFuture instead of async-trait

* expose-test-schema already includes serde_json

* Add anyhow to juniper dev-dependencies

* The HTTP test helpers are not needed for juniper tests

* juniper_actix does not need tokio in dev-dependencies

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-08-18 21:08:53 -10:00
Mihai Dinculescu
633602f000
juniper_rocket_async/ - Change Cookies to CookieJar (#739) 2020-08-17 14:32:49 -10:00
Arnaud
fdad97aa08
fix(juniper_graphql_ws): correct null deserialization issue (#738)
Closes #735
2020-08-14 13:46:23 -10:00
Mihai Dinculescu
8d7ba8295c
Impl subscriptions for juniper_actix (#716)
* Impl subscriptions for juniper_actix

* Add random_human example subscription

* Add actix_subscriptions example to CI

* fixup! Add random_human example subscription

* Migrate actix subscriptions to juniper_graphql_ws

* Simplify error handling

* Change unwrap to expect

* Close connection on server serialization error

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-08-09 12:19:34 -10:00
Dmitry Murzin
bdc8745a56
Fix compilation of juniper_rocket_async: add limit to Data::open() call (#733) 2020-08-09 10:46:52 -10:00
Christopher Brown
54e0e208fc Small typo fix in juniper_warp comment 2020-08-03 16:05:50 -04:00
Chris
6788ef20c8
omit empty error vec in data message serialization (#732) 2020-08-01 21:43:10 -10:00
Weslen Nascimento
db209b38c4
Fix broken link in README.md (#731) 2020-08-01 13:54:35 -10:00
Chris
84c9720b53
GraphQL-WS crate and Warp subscriptions update (#721)
* update pre-existing juniper_warp::subscriptions

* initial draft

* finish up, update example

* polish + timing test

* fix pre-existing bug

* rebase updates

* address comments

* add release.toml

* makefile and initial changelog

* add new Cargo.toml to juniper/release.toml
2020-07-28 22:23:44 -10:00
Chris
dc309b83b7
Simplify SubscriptionConnection (#719)
* simplify SubscriptionConnection

* fmt

* update pre-existing juniper_warp::subscriptions

* use struct instead of tuple

* fmt

* update juniper_warp
2020-07-28 19:14:53 -10:00
Christian Legnitto
59419f1ec4
Remove boxed in favor of pin. (#725) 2020-07-28 19:10:15 -10:00
Christian Legnitto
c80cecf61e
Rocket can now compile on stable (#723) 2020-07-28 16:03:31 -10:00
Chris
7b9cf4cb18
fix for warp content type filter (#724) 2020-07-28 16:03:07 -10:00
Christian Legnitto
a5be3a878c
Unbreak integration with latest rocket master (#722)
This commit changed where `Outcome` is exported:

adc79016cd
2020-07-28 10:00:41 -10:00
Christian Legnitto
fe6d622008
Update percent_encoding (#715)
Replaces https://github.com/graphql-rust/juniper/pull/702
2020-07-24 17:27:38 -10:00
Christian Legnitto
4647a32b33
Add examples to CI (#714) 2020-07-20 21:38:22 -10:00
Jerel Unruh
de8b2af0d7
Add clone() back to request_id to fix compiler error in juniper_warp (#712)
This is the last item required to close #705
2020-07-20 20:08:45 -10:00
Christian Legnitto
61bc35251f
Fix book tests (#711) 2020-07-18 15:24:33 -10:00
Christian Legnitto
de1b332792
Quickstart comments should mention subscriptions. 2020-07-18 13:29:48 -10:00
Christian Legnitto
29930b002b
Update compile fail tests for nightly Rust (#710)
* Update compile fail tests for latest Rust

The messages appear to have changed on nightly

* Fix tests depending on fixture data

* Fix more integration test paths

* Fix doc warnings
2020-07-18 13:19:50 -10:00
Chris
825a35c686
Fix juniper_warp subscriptions (#707)
* use anyhow::anyhow for subscriptions mod

* remove unnecessary Clone

* fix simultaneous subscriptions

* rm unnecessary .clone
2020-07-18 11:00:17 -10:00
Chris
f5839c034e
Fix subscriptions with custom scalars (#706) 2020-07-17 10:52:16 +03:00
dependabot-preview[bot]
e730f6b336
Update env_logger requirement from 0.5.11 to 0.7.1 (#701)
Updates the requirements on [env_logger](https://github.com/sebasmagri/env_logger) to permit the latest version.
- [Release notes](https://github.com/sebasmagri/env_logger/releases)
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sebasmagri/env_logger/compare/v0.5.11...v0.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-16 20:06:39 -10:00
dependabot-preview[bot]
0c35033dc4
Update pretty_env_logger requirement from 0.2 to 0.4 (#700)
Updates the requirements on [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger) to permit the latest version.
- [Release notes](https://github.com/seanmonstar/pretty-env-logger/releases)
- [Commits](https://github.com/seanmonstar/pretty-env-logger/compare/v0.2.0...v0.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-16 20:06:08 -10:00
Christian Legnitto
87883876bc
Fix some clippy issues (#704) 2020-07-16 07:41:09 -10:00
Christian Legnitto
3c79f6a2c5
Move starwars schema into fixture directory (#694)
Move starwars query into fixture directory

Also include the graphql schema definition file and a test
to make sure they match.
2020-07-15 21:46:37 -10:00
Christian Legnitto
c4319b6449
Update quickstart.md 2020-07-15 21:24:57 -10:00
Christian Legnitto
5ddd2d499f
Add heading for error handling and point to spec
Fixes https://github.com/graphql-rust/juniper/issues/695.
2020-07-15 21:09:19 -10:00
Christian Legnitto
3616e36ece
Update to latest Rocket on master (#699)
The `async` branch has now landed on Rocket's `master`. The git
branch has been deleted.
2020-07-14 21:38:09 -10:00
Christian Legnitto
61a5a747f1
Update subscriptions.md 2020-07-14 21:02:30 -10:00