Commit graph

988 commits

Author SHA1 Message Date
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
Christian Legnitto
81214dd5bf Fix typo 2018-12-17 15:15:56 -08:00
Christian Legnitto
9459435670 Update changelogs
Not sure why `cargo release` didn't do this...
2018-12-17 15:06:16 -08:00
Christian Legnitto
32c8979399 Tweak changelog rewriting 2018-12-17 15:01:31 -08:00
Christian Legnitto
bd4f3c7fa1 Don't use dev version for integration crates 2018-12-17 14:51:28 -08:00
Christian Legnitto
56954b15dc Fix publishing juniper atfter juniper_codegen 2018-12-17 14:49:27 -08:00
Christian Legnitto
f52c0e141e Don't use a dev version 2018-12-17 14:48:29 -08:00
Christian Legnitto
8b2ec00a92 Bump juniper_codegen version to 0.11.1-pre 2018-12-17 14:43:57 -08:00
Christian Legnitto
bcf2223e89 Automate updating versions in changelog
This is part of https://github.com/graphql-rust/juniper/issues/248
2018-12-17 14:04:46 -08:00
Christian Legnitto
905c73af78 Move juniper changelog to a single file in juniper crate 2018-12-17 14:04:46 -08:00
Christian Legnitto
1868acc5a1 Bump versions past current crates.io version 2018-12-17 14:04:40 -08:00
Christian Legnitto
2502c1b6da Set up some release automation.
Partially fixes https://github.com/graphql-rust/juniper/issues/248.

* Install `cargo-release`. (currently need a patched one with https://github.com/sunng87/cargo-release/pull/74)
* Run `cargo make release-dry-run` to do a dry run of a release
* Run `cargo make release` to do a minor versioned release of every crate
* Run `cargo make release-patch` to do a patch release of every crate

To only release one crate:
* Change directories into the desired crate
* Point `cargo-make` to the workspace-level Makefile when running a command. For example, `cargo make --makefile ../Makefile.toml release-dry-run`.

From the workspace root, run `cargo
2018-12-17 13:45:56 -08:00
Christian Legnitto
73175d7a10 Bump version 2018-12-17 13:11:21 -08:00
Christoph Herzog
e2063bd932 Bump juniper_rocket to 0.2 2018-12-16 11:23:07 +01:00
Christian Legnitto
4c92b45e57 Change the order of crates in the workspace
This is needed when we use `carg-make` for releases. From
https://github.com/sagiegurari/cargo-make#usage-workspace-support:

"The order of the members is defined by the member attribute in the workspace Cargo.toml."
2018-12-12 19:20:23 -07:00
Christian Legnitto
6bc7b53ec6 Make sure we don't publish juniper_test 2018-12-12 19:18:12 -07:00
Chris Schneider
733125c60b Fix example link in juniper_rocket README (#291)
The official repo was combined back into the main juniper repo, but the link didn't get updated.
2018-12-11 19:58:25 -07:00
Eric Dattore
cb00a7b2bc Update juniper_rocket for Rocket 0.4 (#277)
Path handling changed in Rocket 0.4 and this commit updates the way
those paths are handled. It adds an implementation of the
`FromFormValue` trait to the `GraphQLRequest` object. It also changes
the documentation to use the multi-segment query string syntax.

All existing tests pass as expected.
2018-12-10 17:45:22 -07:00
Christian Legnitto
3ce3b21eb1
Flatten juniper_warp example (#289)
This isn't needed, as examples by default are built when the
containing crate is tested.

I also confirmed that `cargo run --example warp_server` still works.
2018-12-08 20:27:23 -07:00
Christian Legnitto
78d5ab795b
Make travis builds not cache (#290)
See https://levans.fr/rust_travis_cache.html. I suspect it is causing
failures like https://travis-ci.org/graphql-rust/juniper/jobs/465442258 as
well.
2018-12-08 20:26:51 -07:00
Will Glynn
4858f90a70 Build wasm32-unknown-unknown in CI (#278)
* Build wasm32-unknown-unknown in CI (#218)

`cargo check --wasm32-unknown-unknown` is sufficient to demonstrate that the
`juniper` and `juniper_codegen` crates can compile for WebAssembly, which should
help avoid accidental regressions.
2018-12-07 12:46:22 -07:00