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
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

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"