Commit graph

56 commits

Author SHA1 Message Date
nickelc
b9257ef7d4
Fix Clippy warnings (#980) 2021-09-12 20:38:41 +03:00
nitnelave
4c76e93cfb
Fix endpoint name typo in juniper_actix example, vol.2 (#977, #976) 2021-08-26 10:38:16 +03:00
nitnelave
717c202ba9
Fix endpoint name typo in juniper_actix example (#976) 2021-08-26 10:15:35 +03:00
Kai Ren
a3fda7363d
Rework codegen for GraphQL objects and subscriptions (#971, #421)
- preserve and reuse defined impl blocks in #[graphql_object] and #[graphql_subscription] macros expansion
- allow renaming `ScalarValue` type parameter in expanded code via `scalar = S: ScalarValue` syntax

Additionally:
- rename `rename` attribute's argument to `rename_all`
- support `rename_all` in #[graphql_interface] macro
2021-08-11 17:41:49 +03:00
dependabot[bot]
88a7571b30
Update env_logger requirement from 0.8.1 to 0.9.0 (#964)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tyranron <tyranron@gmail.com>
2021-07-16 12:01:18 +03:00
Christian Legnitto
439829b1f5 Release juniper_actix 0.4.0 2021-07-08 00:16:47 -07:00
Christian Legnitto
d4a5ed4b0e Release juniper_graphql_ws 0.3.0 2021-07-08 00:10:57 -07:00
Christian Legnitto
88b10fe009 Release juniper 0.15.7 2021-07-08 00:01:56 -07:00
Christian Legnitto
1aa68ee440
Update CHANGELOG.md 2021-07-06 16:25:39 -07:00
Christian Legnitto
1146a01331
Use actix betas to allow publishing on crates.io (#954) 2021-07-06 16:23:41 -07:00
Jordão Rodrigues Oliveira Rosario
6ada6b09a9
Actix v4.0.0-beta.8 support (#952) 2021-07-06 15:41:42 -07:00
Jordão Rodrigues Oliveira Rosario
739cc3bfc2
Upgraded tokio, warp, hyper and actix (#912)
* Upgraded tokio, warp, hyper and actix

* Code formatting

* actix-web temporary version fix specification

* Error handling fix on juniper_rocket

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-06-28 20:22:45 -10:00
Christian Legnitto
ae199387fc Release juniper_actix 0.2.5 2021-06-07 19:43:43 -07:00
Christian Legnitto
831211911b Release juniper_graphql_ws 0.2.5 2021-06-07 19:41:31 -07:00
Christian Legnitto
5dee177fb1 Release juniper 0.15.6 2021-06-07 18:23:16 -07:00
tyranron
e998457c0e
Release juniper 0.15.5 2021-05-11 17:38:32 +03:00
tyranron
70bc9c4512
Make Clippy almost happy on latest Rust 2021-05-10 12:18:31 +03:00
Christian Legnitto
6dc939febb Release juniper_actix 0.2.4 2021-04-03 15:43:50 -10:00
Christian Legnitto
a85315e5fb Release juniper_graphql_ws 0.2.4 2021-04-03 15:41:32 -10:00
Christian Legnitto
97d8b70ea0 Release juniper 0.15.4 2021-04-03 15:36:50 -10:00
Christian Legnitto
19bfbf60fb Release juniper_actix 0.2.3 2021-01-27 21:35:55 -10:00
Christian Legnitto
3638e1e65e Release juniper_graphql_ws 0.2.3 2021-01-27 20:35:52 -10:00
Christian Legnitto
212f896e40 Release juniper 0.15.3 2021-01-27 17:54:00 -10:00
Christian Legnitto
c4c115ca97
Update CHANGELOG.md 2021-01-27 04:26:28 -10:00
Erik
8d654a6b42
Fix Content-Type header parsing in 'juniper_actix' (#863, #860) 2021-01-26 22:07:39 +02:00
Christian Legnitto
6f49085096 Release juniper_actix 0.2.2 2021-01-15 19:56:45 -10:00
Christian Legnitto
d4c97fdc77 Release juniper_graphql_ws 0.2.2 2021-01-15 19:53:42 -10:00
Christian Legnitto
186186a603 Release juniper 0.15.2 2021-01-15 19:46:23 -10:00
EdorianDark
250e261204
Make the actix example self contained (#839)
A smaller example is esier to understand.
Fixes #804

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-01-15 19:26:55 -10:00
Christian Legnitto
509438a5be Release juniper_actix 0.2.1 2020-12-12 09:53:43 -10:00
Christian Legnitto
7da9f6fcd6 Release juniper_graphql_ws 0.2.1 2020-12-12 09:52:41 -10:00
Christian Legnitto
b2a3b097bd Release juniper 0.15.1 2020-12-12 09:48:31 -10:00
Christian Legnitto
7332065e60
Update CHANGELOG.md 2020-12-12 09:46:36 -10:00
Kunjan Dalal
b418869f95
Update actix and juniper_actix (#823) 2020-12-10 21:40:49 -10:00
Christian Legnitto
1c4497b66c Release juniper_actix 0.2.0 2020-12-09 20:11:02 -10:00
Christian Legnitto
0b6a8895e4 Fix juniper_actix releases 2020-12-09 20:09:35 -10:00
Christian Legnitto
bfe627e573 Release juniper 0.15.0 2020-12-09 19:19:43 -10:00
Kai Ren
a4871887bb
Default to generic ScalarValue in #[graphql_object] macro (#779)
* Change codegen ScalarValue defaults for #[graphql_object] macro

* Fix integration tests

* Fix codegen failure tests

* Fix 'juniper' crate tests

* Fix integration crates tests

* Fix 'juniper_benchmarks' crate

* Fix examples

* Fix Book

* Fix

* Add CHANGELOG entry

* Some Book corrections

* Fix

* Bootstrap coercion machinery

* Reimpl coercion

* Correct tests, vol.1

* Correct tests, vol.2

* Correct tests, vol.3

* Correct tests, vol.4

* Correct tests, vol.5

* Fix coercion for subscriptions

* README fixes

Co-authored-by: Christian Legnitto <christian@legnitto.com>
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-11-06 18:15:18 -08:00
Kunjan Dalal
4c40826eff
explicit origin is required with new CORS (#802)
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-11-04 20:44:16 -08:00
dependabot-preview[bot]
3e4cf680e2
Upgrade 'actix-cors' crate to 0.5 version (#792)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: tyranron <tyranron@gmail.com>
2020-10-20 12:57:14 +03:00
Kai Ren
421b343398
Remove redundant extern crate usages (#790)
Additionally:
- remove obsolete benches in benches/ dir
- restore benches in juniper/benches/ dir
2020-10-19 19:42:27 +03:00
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
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
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
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
tyranron
0f400c3799
Fmt juniper_actix crate 2020-09-02 22:52:15 +03: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
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
Christian Legnitto
fe6d622008
Update percent_encoding (#715)
Replaces https://github.com/graphql-rust/juniper/pull/702
2020-07-24 17:27:38 -10: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