Commit graph

458 commits

Author SHA1 Message Date
Christoph Herzog
54a1b64a79
Refactor code to 2018 edition with 'cargo fix --edition' 2019-05-02 18:44:56 +02:00
Christoph Herzog
178f594e58 Fix lookahead for optional arguments. 2019-05-02 18:30:27 +02:00
Christoph Herzog
85d5480d50 Make introspection tests ordering independent.
With the new HashMap implementation, the maps on stable and nightly
have different ordering.

The introspection tests were relying on strict ordering.
This commit adds a simple sorting of the results to prevent
test failures.
2019-05-02 18:25:14 +02:00
Christian Legnitto
b96879e2db Add a git ssh origin when pushing docs
Azure apparently downloads the source via http,
so when we go to push the ssh keychain is not used.
adding origin shoudl fix it, as was done in
https://cloudblogs.microsoft.com/opensource/2019/04/05/publishing-github-pages-from-azure-pipelines/
2019-04-16 21:52:58 -07:00
Christian Legnitto
94cc621598 Attempt to fix docs
Cribbed from https://cloudblogs.microsoft.com/opensource/2019/04/05/publishing-github-pages-from-azure-pipelines/
and https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/install-ssh-key?view=azure-devops
2019-04-16 21:27:24 -07:00
Christian Legnitto
17e564c6f0
Use bash for docs scripts
This is erroring out on CI as `pipefail` is a bash-ism AFAICT.
2019-04-15 21:41:00 -07:00
Christoph Herzog
3165467665 (book) Remove inexistant tutorial link 2019-04-10 03:00:35 +02:00
Christoph Herzog
ff66b89baa tmp 2019-04-10 02:30:38 +02:00
Muriel Silveira
a75396846d Fix broken docs links
Many links on the documentation were broken because they
were not using the correct relative paths.
2019-04-10 02:19:26 +02:00
Christian Legnitto
327acbd1d9
Make integration tests skip release-related automation (#341) 2019-04-08 23:12:14 -07:00
Christian Legnitto
6ff551fcb0 Support fragments with nested types in lookahead
Fixes https://github.com/graphql-rust/juniper/issues/335
2019-04-06 19:52:18 +02:00
Christian Legnitto
860aa8b419
Use correct docs build script in CI 2019-04-04 12:12:27 -07:00
Christian Legnitto
e11d0d2535 Remove typo in comment 2019-04-04 09:11:20 +02:00
Christian Legnitto
ba8cfbd105 Add support for the canonical introspection query
Fixes https://github.com/graphql-rust/juniper/issues/307.
2019-04-04 09:11:20 +02:00
Christian Legnitto
d5341e252a
Make build_book_master run in Linux
This was failing because it was running on windows: https://dev.azure.com/graphql-rust/GraphQL%20Rust/_build/results?buildId=223
2019-03-25 19:07:22 -07:00
theduke
dded5fd05d
Merge pull request #330 from theduke/booktmp
Merge book into repo
2019-03-23 16:34:11 +01:00
Christoph Herzog
4f72a61346 Formatting... 2019-03-23 14:44:48 +01:00
Christoph Herzog
07486ccb71 (ci) Disable ssh key installation 2019-03-23 14:40:39 +01:00
Christoph Herzog
8bc02037b3 Fix book links in README.md 2019-03-23 14:22:17 +01:00
Christoph Herzog
bd6f192998 Add Object::iter(_mut) return type change to changelog. 2019-03-08 23:06:00 +01:00
Christian Legnitto
287a24675a Fix TODO for return type
We have bumped past the point of this TODO so we can make
the changes.
2019-03-08 23:06:00 +01:00
Christoph Herzog
ca7f9aa253 (ci) CI integration for book
* Test book code examples in separate job
* In master branch, build + push book to gh-pages branch
2019-03-08 12:00:43 +01:00
Christoph Herzog
9623e4d326 (book) Update and fix book compilation and tests
* Use mdbook for building the book
* Update book config
* Update book hierarchy to work properly with mdbook
    This necessitated adding place-holder index pages
    since mdbook does not suppoert stand-alon menu items
* Update tests to use 2018 edition
* Fix various compilation errors in the tests
2019-03-08 11:47:13 +01:00
Christoph Herzog
49297afab0 Import book from old stand-alone repo.
Imported from https://github.com/graphql-rust/graphql-rust.github.io.
2019-03-08 11:47:13 +01:00
Christoph Herzog
8c5b86e1c6 Allow specifying the Context type in #[derive(GraphQLObject)]
This commit extends the GraphQLObject derive to allow specifying a
custom context type.
2019-03-08 11:47:13 +01:00
Christoph Herzog
6562440105 Disable juniper_hyper testing due to rustc bug. 2019-03-06 23:36:21 +01:00
Christian Legnitto
5241455d17 Remove deprecated function calls
The replacements were added in 1.30, which we have previously switched to
requiring. This silences two warnings.
2019-03-03 09:43:43 +01:00
Camille TJHOA
a3699ff161 Fix juniper_warp example path (#323) 2019-02-20 07:49:16 -07:00
theduke
26f5abe273
Update issue templates 2019-02-03 17:44:16 +01:00
Christian Legnitto
52fb87aaf4 Run cargo fmt on latest stable 2019-01-28 20:28:03 +01:00
Jakob Gillich
b4a0669b37 Add GraphQL Playground integration (#317) 2019-01-25 20:58:01 -08:00
Christian Legnitto
29389e8f72 Fix Azure Pipelines formatting job display name
This was showing up as `check_formatting Job`, see https://dev.azure.com/graphql-rust/GraphQL%20Rust/_build/results?buildId=162
2019-01-10 01:39:13 +01:00
Christian Legnitto
fa80bf7de7 Remove unused crate
This was throwing a warning during compiling.
2019-01-10 01:38:15 +01:00
theduke
036152efb4
juniper_warp: Fix example link in lib.rs docs 2018-12-30 15:12:58 +01:00
theduke
c7d1481c6e Fix the literal value of DirectiveLocation::InlineFragment (#306)
The literal value according to the standard is INLINE_FRAGMENT,
not INLINE_SPREAD.

This oversight leads to invalid introspection schemas and trips up
third party tools.
2018-12-23 07:50:03 -08:00
Christoph Herzog
85ba97dcd9 Clean up introspection tests
* Prefix test function names with 'introspection'
* Use graphql_value! macro instead of manual construction
2018-12-23 15:33:47 +01:00
Christian Legnitto
9b021b2fe7 Keep ScalarValue but mark it as deprecated 2018-12-19 20:17:17 +01:00
Christian Legnitto
88c17db8c3 Rename ScalarValue derive
Fixes https://github.com/graphql-rust/juniper/issues/299.
2018-12-19 20:17:17 +01:00
theduke
d015a3ca66 (ci) Check formatting with cargo fmt (#302)
This adds a new extra CI job for checking the formatting
with cargo fmt --check.
2018-12-19 10:27:49 -08:00
Christian Legnitto
aa80ec51bb Add integration tests to release automation
We want their version bumped when juniper is released as
well.
2018-12-19 07:25:27 -08:00
Christoph Herzog
d43d5f2c2d Fix cargo make config for 2018 edition test crate 2018-12-19 12:46:37 +01:00
Christoph Herzog
f02e427cab Refactor integration test layout + add minimal 2018 edition test
* Add a new integration_tests subdirectory that holds integration tests
* Add a new, temporary (and really minimal) 2018 edition test crate
2018-12-19 03:53:33 +01:00
Christoph Herzog
2f5e3ab29b 0.11.1 Release
* Changelog
* Cargo.toml version bumps
2018-12-19 03:53:33 +01:00
Christoph Herzog
8dd2eafef8 Add *Internal custom derive variants for juniper crate
Currently, custom derives inside the main juniper crate are supported by
an ugly hack using the __juniper_use_everything macro.

This commit adds new custom derive variants that are for
main juniper crate internal use only (GraphQL{Enum,InputObject}Internal.

All custom derives inside the juniper crate are refactored to use the
new '*Internal' derives.

This allows us to
* remove the use_everything macro,
* simplify the generated code for custom derives
* support the Rust 2018 edition
2018-12-19 03:53:33 +01:00
Christoph Herzog
3f1ae66b2c Refactor macros to use $crate:: method instead of local_inner_macros.
This commit refactors the macros to use the $crate::inner_macro
trick instead of local_inner_macros.

This is possible since we only support rust 1.30 as a minimum version.
(the $crate:: method only works on 1.30+).

With this change, the wrapper helper macros for std macros can also
be removed.
2018-12-19 03:53:33 +01:00
Christian Legnitto
dee849c88b Bump min rust version to 1.30.0
Some dependiencies rely on cc, which after
228513449f
requires 1.30.0.
2018-12-18 23:17:43 +01:00
Christian Legnitto
0793e22f62 Add changelog replacements for subcrates 2018-12-18 11:19:19 -08:00
Christian Legnitto
373e5fa5c8 Update juniper_hyper's changelog 2018-12-18 11:18:45 -08:00
Christian Legnitto
f3d0308425 Remove extra release.toml 2018-12-18 11:12:25 -08:00
Christian Legnitto
632c941e4a Rename changelog to match other crates 2018-12-18 11:11:18 -08:00