juniper/Cargo.toml
Michael Macias b78aef715d Make rustc-serialize optional
This extracts rustc-serialize JSON serialization into its own module,
decoupling all core structures from its use.

rustc-serialize can now be completely disabled, removing it as a
dependency if serde (or none) is used instead. It is, however, still the
default serializer. In Cargo, the `default-features` field must be set
to `false` to disable it, e.g.,

    [dependencies.juniper]
    version = "0.6"
    default-features = false
    features = ["serde"]

The Iron handlers still require rustc-serialize.

The default values for attributes changed from being formatted as JSON
to how it is defined in [the reference implementation][printer.js].

[printer.js]: https://github.com/graphql/graphql-js/blob/v0.8.2/src/language/printer.js
2017-01-06 21:34:44 -06:00

34 lines
829 B
TOML

[package]
name = "juniper"
version = "0.6.1"
authors = ["Magnus Hallin <mhallin@fastmail.com>"]
description = "GraphQL server library"
license = "BSD-2-Clause"
documentation = "http://mhallin.github.io/juniper"
repository = "https://github.com/mhallin/juniper"
readme = "README.md"
keywords = ["graphql", "server", "iron", "http", "web"]
[[bench]]
name = "bench"
harness = false
path = "benches/bench.rs"
[features]
default = ["rustc-serialize"]
nightly = []
iron-handlers = ["iron", "rustc-serialize"]
expose-test-schema = []
[dependencies]
rustc-serialize = { version = "^0.3.19", optional = true }
iron = { version = "^0.4.0", optional = true }
serde = { version = "^0.8.21", optional = true }
[dev-dependencies]
iron = "^0.4.0"
router = "^0.2.0"
mount = "^0.2.1"
logger = "^0.1.0"
iron-test = "^0.4.0"
bencher = "^0.1.2"