Set up clippy for serde_test

This commit is contained in:
David Tolnay 2017-01-25 20:38:21 -08:00
parent 948aa47687
commit db449c4bf2
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 13 additions and 1 deletions

View File

@ -11,7 +11,11 @@ readme = "../README.md"
keywords = ["serde", "serialization"]
include = ["Cargo.toml", "src/**/*.rs"]
[features]
unstable-testing = ["clippy"]
[dependencies]
clippy = { version = "0.*", optional = true }
serde = { version = "0.9", path = "../serde" }
[badges]

View File

@ -1,3 +1,6 @@
#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]
extern crate serde;
mod assert;

View File

@ -12,7 +12,12 @@ keywords = ["serialization"]
publish = false
[features]
unstable-testing = ["clippy", "serde/unstable-testing", "serde_derive/unstable-testing"]
unstable-testing = [
"clippy",
"serde/unstable-testing",
"serde_derive/unstable-testing",
"serde_test/unstable-testing",
]
[dev-dependencies]
compiletest_rs = "0.2"