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