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] [features]
unstable-testing = [ unstable-testing = [
"clippy", "clippy",
"compiletest_rs",
"serde/unstable-testing", "serde/unstable-testing",
"serde_derive/unstable-testing", "serde_derive/unstable-testing",
"serde_test/unstable-testing", "serde_test/unstable-testing",
] ]
[dev-dependencies] [dev-dependencies]
compiletest_rs = "0.2"
fnv = "1.0" fnv = "1.0"
rustc-serialize = "0.3.16" rustc-serialize = "0.3.16"
serde = { path = "../serde" } serde = { path = "../serde" }
@@ -29,6 +29,7 @@ serde_test = { path = "../serde_test" }
[dependencies] [dependencies]
clippy = { version = "0.*", optional = true } clippy = { version = "0.*", optional = true }
compiletest_rs = { version = "0.2", optional = true }
[[test]] [[test]]
name = "test" name = "test"