Commit graph

178 commits

Author SHA1 Message Date
Magnus Hallin
9bab8d7bf7 Add Gitter badge 2017-07-12 11:47:54 +02:00
Sam Rijs
dc140a1ea0 Avoid boxing in MultiVisitor 2017-07-11 16:02:55 +02:00
Sam Rijs
d15f9bd162 Improve best-case performance for to_camel_case 2017-07-11 15:55:24 +02:00
Sam Rijs
902c55dade Try to avoid cloning in Value::object 2017-07-11 15:54:56 +02:00
Magnus Hallin
9ca173f6bf Add CI badges 2017-06-19 09:47:02 +02:00
Magnus Hallin
416861418b Improve numerical stability in tests 2017-06-18 20:27:31 +02:00
Magnus Hallin
16001ffde8 Add Appveyor Windows CI build configuration 2017-06-18 20:27:31 +02:00
Magnus Hallin
a0ec8bae6d Update readme link to documentation 2017-06-16 12:01:21 +02:00
Magnus Hallin
39159acb41 Fix broken crate metadata, prepare 0.8.1 release 2017-06-15 22:11:27 +02:00
Magnus Hallin
f336a9a97a Fix tests after removing internal fields from introspection 2017-06-15 17:02:08 +02:00
Magnus Hallin
6aed455f03 Prepare for 0.8.0 release 2017-06-15 16:53:27 +02:00
Magnus Hallin
39e1cba49b Rename the empty mutation type and hide __ fields from introspection
This makes GraphiQL stop emitting deprecation warnings
2017-06-15 16:22:52 +02:00
Magnus Hallin
ab7e262f7c Update to latest GraphiQL 2017-06-15 16:12:36 +02:00
Magnus Hallin
8e104204a3 Drop i64 support, add i32 support
This is a breaking change, but having i64 support is both against the
specification and a bad idea when interfacing with e.g. JavaScript or
transmitting it via JSON
2017-06-15 10:48:58 +02:00
Magnus Hallin
cecf50735b Limit incoming integers to the 32 bit signed range
Also related to #49 - unsigned integers will no longer be represented
as floats.

While this spec might break clients, it makes Juniper follow the GraphQL
specification more closely
2017-06-15 10:37:30 +02:00
Magnus Hallin
b673f5bd1f Validate scalar values passed as variables
Related to #49 - prevents panics in later stages of execution
2017-06-15 10:36:07 +02:00
Magnus Hallin
4d8c3611d2 Only build HTTP tests when a HTTP integration has been enabled 2017-06-15 10:34:59 +02:00
Magnus Hallin
b23374c868 Remove printlns in non-test code 2017-06-15 09:22:18 +02:00
Magnus Hallin
3f277ba8b4 Add Rocket integration to the HTTP test suite 2017-06-14 18:21:05 +02:00
Magnus Hallin
565f14ceef Factor out HTTP integration tests to http module 2017-06-14 17:24:50 +02:00
Magnus Hallin
5f69b1d45e Stop building on older Rusts than 1.17.0
While the library still works, all targets can't be tested since the
"required features" feature in Cargo is absent, making it try to
compile the Rocket integration when running the test suite.
2017-06-14 16:45:21 +02:00
Magnus Hallin
eae2b51c35 Build and test Rocket integration on nightly compiler on Travis 2017-06-14 16:27:35 +02:00
Magnus Hallin
e82534aced Initial work on Rocket integration 2017-06-14 15:50:27 +02:00
Magnus Hallin
a7a6778b18 Extract general HTTP/JSON functions from Iron integration 2017-06-14 15:50:14 +02:00
Magnus Hallin
cac5dd17c3 Actually run cargo package when deploying 2017-06-14 10:28:41 +02:00
Magnus Hallin
0077f2df7d Add Rust 1.18.0 to Travis 2017-06-14 09:24:37 +02:00
Magnus Hallin
47659c6006 Rely on docs.rs for documentation rather than hosting our own 2017-06-14 09:20:05 +02:00
Magnus Hallin
13a0456236 Add Rust 1.17.0 to Travis build 2017-06-14 09:08:01 +02:00
Magnus Hallin
41a33a3238 Merge branch 'serde-1.0' of https://github.com/zaeleus/juniper into zaeleus-serde-1.0
# Conflicts:
#	Cargo.toml
2017-06-14 09:05:56 +02:00
Magnus Hallin
7d7e7e6252 Don't depend on serde_json by default, rename some structs 2017-06-14 09:02:56 +02:00
Magnus Hallin
7041efeda9 Merge branch 'drop_rustc_serialization' of https://github.com/TheServerAsterisk/juniper into TheServerAsterisk-drop_rustc_serialization
# Conflicts:
#	examples/server.rs
2017-06-14 08:51:49 +02:00
Michael Macias
0f5182460f Upgrade to serde 1.0
serde 1.0.0 introduces breaking changes. See the release notes for more
details: <https://github.com/serde-rs/serde/releases/tag/v1.0.0>.

Fixes #50
2017-05-26 16:15:03 -05:00
rpiper
80de43e551 Drop support for rust 1.13 and 1.14 2017-05-22 08:24:31 -06:00
Magnus Hallin
95b4124f6b Provide better error message when running example without features
Even better would be if "cargo run --example server" would
automatically enable those features, but Cargo can't do that right now.
2017-05-18 10:31:53 +02:00
rpiper
ba15579531 Added conditional compliation logic. 2017-05-14 20:10:46 -06:00
rpiper
d3b1433748 Added more support for get requests and the get and post handlers leverage the GraphQlQuery struct. Added a couple more tests for get requests. 2017-05-14 19:37:47 -06:00
rpiper
998faec4cb Removed iexpect macro, added urlencoded and serde_derive dependencies. 2017-05-14 19:34:34 -06:00
rpiper
e890e9b4bd Removed from_json, leveraged the already implemented serialization trait and added a serialization implementation for the graphql result. 2017-05-14 19:33:37 -06:00
rpiper
6c4b329848 Added serde_derive and urlencoded as dependecies. 2017-05-14 19:30:49 -06:00
rpiper
1e334becda Implemented from_json for InputValue. 2017-04-30 20:22:04 -06:00
rpiper
494628a7c7 Removed rustc-serialization as a dependency. 2017-04-30 20:20:41 -06:00
rpiper
54cfbeb010 - Replaced rustc-serialization logic with Serde.
- Added a GraphQlIronError
- Changed execute from lib.rs to execute_query
2017-04-30 20:20:08 -06:00
rpiper
9adc0c4479 Removed rustc-serialization as dependency and updated the docs that referenced rustc. 2017-04-30 20:09:10 -06:00
rpiper
41112d0b6d Drop support for rustc-serialization and use serde by default. 2017-04-30 20:07:36 -06:00
Magnus Hallin
032b03add3 Merge pull request #44 from Mrmaxmeier/remove-parser-panic
Remove panic in Parser::next
2017-04-30 14:07:19 +02:00
Mrmaxmeier
545a70771d remove panic in Parser::next 2017-04-27 21:10:50 +02:00
Magnus Hallin
20df66f8f0 Add fields to improve tooling compatibility
This adds some non-standard/deprecated fields to better work with
tools such as GraphiQL or GraphQLViz.
2017-02-27 21:15:13 +01:00
Magnus Hallin
eca20cd8ca Prepare for 0.7.0 release 2017-02-26 12:58:52 +01:00
Magnus Hallin
b7a2f577ef Add more default value documentation 2017-02-26 12:56:07 +01:00
Magnus Hallin
47ce85bd72 Use 1D variable to not depend on HashMap order in tests 2017-02-26 11:59:30 +01:00