From b71b1a078cc8fdd13eecc2f623c1cb63794cc558 Mon Sep 17 00:00:00 2001 From: Alberto Leal Date: Thu, 7 Jul 2016 20:36:49 -0400 Subject: [PATCH] Add note on how to enable the optional dependency --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3159a3e8979..db3eca865eb 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,8 @@ And, in your `main.rs` or `lib.rs`: #![cfg_attr(feature="clippy", plugin(clippy))] ``` +Then build by enabling the feature: `cargo build --features "clippy"` + Instead of adding the `cfg_attr` attributes you can also run clippy on demand: `cargo rustc --features clippy -- -Z no-trans -Z extra-plugins=clippy` (the `-Z no trans`, while not neccessary, will stop the compilation process after -- 2.44.0