From 1d063cce01089c2ccdbb15f653e32af13436b7a9 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 21 Sep 2019 19:19:56 -0700 Subject: [PATCH] Hide summary functionality behind feature flag (#472) Since summaries are only used by Janus, the Just ecosystem testing tool, it makes sense to hide it behind a feature flag. --- Cargo.toml | 1 + src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e6e53b0..8722c6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ edition = "2018" [features] default = [] help4help2man = [] +summary = [] [dependencies] ansi_term = "0.11" diff --git a/src/lib.rs b/src/lib.rs index d2089a0..aa0d2ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,4 +60,5 @@ mod warning; pub use crate::run::run; +#[cfg(summary)] pub mod summary;