mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 06:41:03 +00:00
Set up clippy for serde_test
This commit is contained in:
@@ -11,7 +11,11 @@ readme = "../README.md"
|
|||||||
keywords = ["serde", "serialization"]
|
keywords = ["serde", "serialization"]
|
||||||
include = ["Cargo.toml", "src/**/*.rs"]
|
include = ["Cargo.toml", "src/**/*.rs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
unstable-testing = ["clippy"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
clippy = { version = "0.*", optional = true }
|
||||||
serde = { version = "0.9", path = "../serde" }
|
serde = { version = "0.9", path = "../serde" }
|
||||||
|
|
||||||
[badges]
|
[badges]
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
#![cfg_attr(feature = "clippy", feature(plugin))]
|
||||||
|
#![cfg_attr(feature = "clippy", plugin(clippy))]
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
|
|
||||||
mod assert;
|
mod assert;
|
||||||
|
|||||||
+6
-1
@@ -12,7 +12,12 @@ keywords = ["serialization"]
|
|||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[features]
|
[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]
|
[dev-dependencies]
|
||||||
compiletest_rs = "0.2"
|
compiletest_rs = "0.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user