chore(cargo): Only depend on clippy when testing

This commit is contained in:
Erick Tryzelaar
2016-02-08 13:35:26 -08:00
parent 3cde6fa333
commit 517c2f79b7
5 changed files with 20 additions and 6 deletions
+12 -1
View File
@@ -12,6 +12,9 @@ keywords = ["serde", "serialization"]
name = "serde_macros"
plugin = true
[features]
nightly-testing = ["clippy", "serde/nightly-testing", "serde_codegen/nightly-testing"]
[dependencies]
clippy = { version = "^0.0.37", optional = true }
serde_codegen = { version = "^0.6.10", path = "../serde_codegen", default-features = false, features = ["nightly"] }
@@ -20,4 +23,12 @@ serde_codegen = { version = "^0.6.10", path = "../serde_codegen", default-featur
compiletest_rs = "^0.0.11"
num = "^0.1.27"
rustc-serialize = "^0.3.16"
serde = { version = "^0.6.10", path = "../serde", features = ["nightly", "num-impls"] }
serde = { version = "^0.6.10", path = "../serde", features = ["num-impls"] }
[[test]]
name = "test"
path = "tests/test.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"