Make juniper_codegen dependency non-optional.
This commit is contained in:
parent
40d8f905e9
commit
709231dc46
2 changed files with 3 additions and 9 deletions
juniper
|
@ -20,18 +20,16 @@ harness = false
|
||||||
path = "benches/bench.rs"
|
path = "benches/bench.rs"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
codegen = ["juniper_codegen"]
|
|
||||||
nightly = []
|
nightly = []
|
||||||
expose-test-schema = []
|
expose-test-schema = []
|
||||||
default = [
|
default = [
|
||||||
"codegen",
|
|
||||||
"chrono",
|
"chrono",
|
||||||
"url",
|
"url",
|
||||||
"uuid"
|
"uuid"
|
||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
juniper_codegen = { version = "0.9.0", path = "../juniper_codegen" , optional = true}
|
juniper_codegen = { version = "0.9.0", path = "../juniper_codegen" }
|
||||||
|
|
||||||
fnv = "1.0.3"
|
fnv = "1.0.3"
|
||||||
ordermap = { version = "0.2.11", features = ["serde-1"] }
|
ordermap = { version = "0.2.11", features = ["serde-1"] }
|
||||||
|
|
|
@ -134,18 +134,14 @@ extern crate url;
|
||||||
#[cfg(any(test, feature = "uuid"))]
|
#[cfg(any(test, feature = "uuid"))]
|
||||||
extern crate uuid;
|
extern crate uuid;
|
||||||
|
|
||||||
// If the "codegen" feature is enabled, depend on juniper_codegen and re-export everything in it.
|
// Depend on juniper_codegen and re-export everything in it.
|
||||||
// This allows users to just depend on juniper and get the derive funcationality automatically.
|
// This allows users to just depend on juniper and get the derive functionality automatically.
|
||||||
#[cfg(feature = "codegen")]
|
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate juniper_codegen;
|
extern crate juniper_codegen;
|
||||||
|
|
||||||
#[cfg(feature = "codegen")]
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub use juniper_codegen::*;
|
pub use juniper_codegen::*;
|
||||||
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod value;
|
mod value;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
Loading…
Add table
Reference in a new issue