Make clippy an optional dependency

This commit is contained in:
Manish Goregaokar
2016-02-13 02:31:23 +05:30
parent 50b6c6d4ad
commit 8802fb2fd8
12 changed files with 28 additions and 19 deletions

View File

@@ -16,6 +16,10 @@ jsonrpc-http-server = "1.1.2"
ethcore-util = { path = "../util" }
ethcore = { path = "../ethcore" }
ethsync = { path = "../sync" }
clippy = "0.0.41"
clippy = { version = "0.0.41", optional = true }
target_info = "0.1.0"
rustc-serialize = "0.3"
[features]
default = []
dev = ["clippy", "ethcore/dev", "ethcore-util/dev", "ethsync/dev"]

View File

@@ -18,7 +18,7 @@
#![warn(missing_docs)]
#![feature(custom_derive, custom_attribute, plugin)]
#![plugin(serde_macros)]
#![plugin(clippy)]
#![cfg_attr(feature="dev", plugin(clippy))]
extern crate rustc_serialize;
extern crate target_info;