50U10FCA7
76b9caf9fa
Fix building juniper
crate without default features ( #1064 , #1065 )
...
Co-authored-by: Kai Ren <tyranron@gmail.com>
2022-05-17 11:36:46 +03:00
Wojciech Niedźwiedź
bdaee42156
Provide integration for bigdecimal
and rust_decimal
crates ( #1060 , #1059 )
...
Co-authored-by: Kai Ren <tyranron@gmail.com>
2022-05-05 21:00:58 +03:00
dependabot[bot]
0d6d6471a2
Upgrade uuid
crate to 1.0 version ( #1057 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
2022-04-20 20:21:14 +03:00
Kai Ren
72ed45a77c
Rework CI and project toolchain ( #1043 )
...
- remove `cargo-make` integration
- rework CI pipeline more granular and precise
- rework releasing process
- tune up project layout
- fill up new CHANGELOGs
Additionally:
- fix latest nightly/stable Rust inconsistencies
2022-04-08 17:44:50 +03:00
ilslv
fec998dce8
Update chrono
crate scalars according to graphql-scalars.dev ( #1010 )
...
- remove `scalar-naivetime` feature
- disable `chrono` feature by default
2022-03-04 17:53:27 +02:00
dependabot[bot]
4862915e47
Upgrade smartstring
crate to 1.0 version ( #1030 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
2022-02-28 12:59:19 +02:00
tyranron
77d4c90b23
Bump up juniper
and juniper_codegen
version to 0.16.0-dev to disambiguate release automation on CI
2022-02-02 20:08:41 +02:00
tyranron
589acb5a7b
Merge security fixes from 0.15 juniper
releases
2022-02-02 19:37:24 +02:00
tyranron
855137cde6
Release juniper
0.15.9
2022-02-02 18:33:41 +02:00
tyranron
a0a566bc5b
Release juniper_codegen
0.15.9
2022-02-02 18:28:30 +02:00
Christian Legnitto
3025ab0a4a
Release juniper 0.15.8
2022-01-26 23:28:49 -08:00
Christian Legnitto
1fd518e72c
Release juniper_codegen 0.15.8
2022-01-26 23:28:15 -08:00
tyranron
18b10af9f3
Improve time
crate integration ( #1006 )
...
- fix input/result coercions for `OffsetDateTime` according to spec
- use `@specifyByUrl` directive
- remove `time` from default features
2021-12-20 19:33:39 +01:00
Scott Wilson
3e4d4ea76e
Support time
crate types as GraphQL scalars ( #1006 )
...
Co-authored-by: Kai Ren <tyranron@gmail.com>
2021-12-16 22:43:15 +02:00
ilslv
265d4c5bb2
Fix list input coercion rules ( #1004 )
...
Additionally:
- fix WASM builds after 2.1 version of `bson`
2021-12-16 12:36:53 +02:00
dependabot[bot]
811c90486d
Upgrade graphql-parser
to 0.4 version ( #998 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Solovyiov <ilya.solovyiov@gmail.com>
2021-11-30 10:50:09 +02:00
dependabot[bot]
a8759b0a30
Update pretty_assertions requirement from 0.7.1 to 1.0.0
...
Updates the requirements on [pretty_assertions](https://github.com/colin-kiegel/rust-pretty-assertions ) to permit the latest version.
- [Release notes](https://github.com/colin-kiegel/rust-pretty-assertions/releases )
- [Changelog](https://github.com/colin-kiegel/rust-pretty-assertions/blob/main/CHANGELOG.md )
- [Commits](https://github.com/colin-kiegel/rust-pretty-assertions/compare/v0.7.1...v1.0.0 )
---
updated-dependencies:
- dependency-name: pretty_assertions
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 16:15:35 -10:00
dependabot[bot]
7ba7585d75
Update chrono-tz requirement from 0.5 to 0.6 ( #982 )
...
Updates the requirements on [chrono-tz](https://github.com/chronotope/chrono-tz ) to permit the latest version.
- [Release notes](https://github.com/chronotope/chrono-tz/releases )
- [Changelog](https://github.com/chronotope/chrono-tz/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono-tz/commits/v0.6.0 )
---
updated-dependencies:
- dependency-name: chrono-tz
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-23 16:55:20 -07:00
dependabot[bot]
6bb34b9b64
Upgrade 'bson' crate to 2.0 version ( #932 , #979 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
Co-authored-by: Grant Perry <grant42perry@gmail.com>
2021-09-08 19:42:07 +03:00
Christian Legnitto
88b10fe009
Release juniper 0.15.7
2021-07-08 00:01:56 -07:00
Christian Legnitto
f50ef5dfaa
Release juniper_codegen 0.15.7
2021-07-08 00:00:55 -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
5dee177fb1
Release juniper 0.15.6
2021-06-07 18:23:16 -07:00
Christian Legnitto
3d57c8316d
Release juniper_codegen 0.15.6
2021-06-07 18:22:09 -07:00
tyranron
e998457c0e
Release juniper 0.15.5
2021-05-11 17:38:32 +03:00
tyranron
c3a04d7d22
Release juniper_codegen 0.15.5
2021-05-11 17:08:34 +03:00
Christian Legnitto
97d8b70ea0
Release juniper 0.15.4
2021-04-03 15:36:50 -10:00
Christian Legnitto
1815d23194
Release juniper_codegen 0.15.4
2021-04-03 15:35:33 -10:00
André Isaksson Kraft
0de631741e
Use smartstring for name of field ( #819 ). ( #899 )
...
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-03-29 19:29:08 -10:00
dependabot-preview[bot]
61fbd6ef7f
Update pretty_assertions requirement from 0.6.1 to 0.7.1 ( #895 )
...
Updates the requirements on [pretty_assertions](https://github.com/colin-kiegel/rust-pretty-assertions ) to permit the latest version.
- [Release notes](https://github.com/colin-kiegel/rust-pretty-assertions/releases )
- [Changelog](https://github.com/colin-kiegel/rust-pretty-assertions/blob/main/CHANGELOG.md )
- [Commits](https://github.com/colin-kiegel/rust-pretty-assertions/compare/v0.6.1...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>
2021-03-29 18:23:33 -10:00
Christian Legnitto
212f896e40
Release juniper 0.15.3
2021-01-27 17:54:00 -10:00
Christian Legnitto
fc1c7dfe63
Release juniper_codegen 0.15.3
2021-01-27 17:53:14 -10:00
Christian Legnitto
186186a603
Release juniper 0.15.2
2021-01-15 19:46:23 -10:00
Christian Legnitto
948517b84f
Release juniper_codegen 0.15.2
2021-01-15 19:44:23 -10:00
Christian Legnitto
b2a3b097bd
Release juniper 0.15.1
2020-12-12 09:48:31 -10:00
Christian Legnitto
f1f64446b5
Release juniper_codegen 0.15.1
2020-12-12 09:47:47 -10:00
Christian Legnitto
bfe627e573
Release juniper 0.15.0
2020-12-09 19:19:43 -10:00
Christian Legnitto
d63fdef321
Release juniper_codegen 0.15.0
2020-12-09 19:19:00 -10: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
nirmangupta
5832b3696d
Support chrono-tz::Tz GraphQL scalar ( #519 )
...
Co-authored-by: Nirman Gupta <nirmangupta@gmail.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
2020-10-19 15:30:17 +03: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
Caio
2ab00f55d6
Remove unused dependencies ( #747 )
2020-08-28 20:34:11 -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
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
Kai Ren
4d77a1a9b9
Strip redundant Send/Sync bounds ( #688 )
...
Additionally:
- strip redundant type parameters for juniper::Context in some core definitions and reuse associated type
2020-06-30 18:13:15 +03:00
Nathan Wilson
7365b0fdd8
Upgrade bson crate to 1.0 ( #678 )
2020-06-10 12:34:56 +03:00
Christian Legnitto
9167654a73
Add support for GraphQL Schema Language ( #676 )
...
Co-authored-by: Alexander Lyon <arlyon@me.com>
2020-06-05 17:43:11 -10:00
Nathan Wilson
02801ee981
Upgrade bson crate to 0.15.0 ( #674 )
2020-06-04 23:40:06 +03:00
Kai Ren
ddc1488195
Codegen reimplementation for GraphQL unions ( #666 )
...
- reimplement #[derive(GraphQLUnion)] macro to support:
- both structs and enums
- generics in type definition
- multiple #[graphql] attributes
- external resolver functions
- remove From trait impls generation for enum variants
- reimplement #[graphql_union] macro to support:
- traits
- generics in trait definition
- multiple attributes
- external resolver functions
- GraphQLType implemetation for a raw trait object
- GraphQLTypeAsync implemetation (#549 )
- add marker::GraphQLUnion trait
- rewrite "2.5 Unions" section in Book (Juniper user documentation)
- rewrite `codegen` and `codegen_fail` integration tests for GraphQL unions
Additionally:
- re-export `futures` crate in `juniper` for convenient reuse in the generated code without requiring library user to provide `futures` crate by himself (#663 )
- use unit type () as default context for EmptyMutation and EmptySubscriptions
- relax Sized trait bound on some GraphQLType and GraphQLTypeAsync definitions, implementations and usages
2020-06-04 11:19:01 +03:00
Caio
2cb96d0fc4
impl GraphQLScalar for NaiveTime ( #657 )
...
* impl GraphQLScalar for NaiveTime
* Add feature
2020-05-20 22:13:31 -10:00