juniper/docs/book/tests/Cargo.toml
Christoph Herzog 3396074274 (codegen) Implement newtype derive for scalars.
This commit implements a newtype style custom derive
for scalars via `#[derive(GraphQLScalarValue)]`, which now
supports both deriving a base enum scalar type and newtypes.

For newtypes, the `#[graphql(transparent)]` attribute is
required.

This commit:
* implements the derive
* adds integration tests
* updates the book
2019-06-25 18:55:45 +02:00

23 lines
450 B
TOML

[package]
name = "juniper_book_tests"
version = "0.1.0"
authors = ["Magnus Hallin <mhallin@fastmail.com>"]
edition = "2018"
build = "build.rs"
[dependencies]
juniper = { path = "../../../juniper" }
juniper_iron = { path = "../../../juniper_iron" }
iron = "0.5.0"
mount = "0.4.0"
skeptic = "0.13"
serde_json = "1.0.39"
uuid = "0.7.4"
[build-dependencies]
skeptic = "0.13"
[patch.crates-io]
juniper_codegen = { path = "../../../juniper_codegen" }