diff --git a/serde/Cargo.toml b/serde/Cargo.toml index 1e741936..30b89fbc 100644 --- a/serde/Cargo.toml +++ b/serde/Cargo.toml @@ -18,7 +18,7 @@ std = [] unstable = [] alloc = ["unstable"] collections = ["alloc"] -unstable-testing = ["unstable", "std"] +unstable-testing = ["clippy", "unstable", "std"] [dependencies] clippy = { version = "^0.*", optional = true } diff --git a/serde_codegen/Cargo.toml b/serde_codegen/Cargo.toml index f5b20603..1395ca4f 100644 --- a/serde_codegen/Cargo.toml +++ b/serde_codegen/Cargo.toml @@ -14,7 +14,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/lib.rs.in"] [features] default = ["with-syntex"] unstable = ["quasi_macros"] -unstable-testing = [] +unstable-testing = ["clippy"] with-syntex = [ "quasi/with-syntex", "quasi_codegen", diff --git a/serde_codegen_internals/Cargo.toml b/serde_codegen_internals/Cargo.toml index 3181eb19..62b24f2e 100644 --- a/serde_codegen_internals/Cargo.toml +++ b/serde_codegen_internals/Cargo.toml @@ -12,7 +12,7 @@ include = ["Cargo.toml", "src/**/*.rs"] [features] default = ["with-syntex"] -unstable-testing = [] +unstable-testing = ["clippy"] with-syntex = ["syntex_syntax", "syntex_errors"] [dependencies] diff --git a/serde_macros/Cargo.toml b/serde_macros/Cargo.toml index 4f41e676..07e85110 100644 --- a/serde_macros/Cargo.toml +++ b/serde_macros/Cargo.toml @@ -17,6 +17,7 @@ plugin = true [features] unstable-testing = [ + "clippy", "skeptic", "serde_json", "serde/unstable-testing", diff --git a/serde_macros/tests/run-pass/identity-op.rs b/serde_macros/tests/run-pass/identity-op.rs index a82f100d..dcf8117a 100644 --- a/serde_macros/tests/run-pass/identity-op.rs +++ b/serde_macros/tests/run-pass/identity-op.rs @@ -1,5 +1,5 @@ #![feature(custom_derive, plugin)] -#![plugin(serde_macros)] +#![plugin(serde_macros, clippy)] #![deny(identity_op)] diff --git a/testing/Cargo.toml b/testing/Cargo.toml index 471ac26d..2604154c 100644 --- a/testing/Cargo.toml +++ b/testing/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["serialization"] build = "build.rs" [features] -unstable-testing = ["serde/unstable-testing", "serde_codegen/unstable-testing"] +unstable-testing = ["clippy", "serde/unstable-testing", "serde_codegen/unstable-testing"] [build-dependencies] serde_codegen = { path = "../serde_codegen", features = ["with-syntex"] }