Make compiletest an optional dependency of the test suite

This commit is contained in:
David Tolnay
2017-01-25 20:39:27 -08:00
parent db449c4bf2
commit 9b9b697eb1
+2 -1
View File
@@ -14,13 +14,13 @@ publish = false
[features]
unstable-testing = [
"clippy",
"compiletest_rs",
"serde/unstable-testing",
"serde_derive/unstable-testing",
"serde_test/unstable-testing",
]
[dev-dependencies]
compiletest_rs = "0.2"
fnv = "1.0"
rustc-serialize = "0.3.16"
serde = { path = "../serde" }
@@ -29,6 +29,7 @@ serde_test = { path = "../serde_test" }
[dependencies]
clippy = { version = "0.*", optional = true }
compiletest_rs = { version = "0.2", optional = true }
[[test]]
name = "test"