From aa3ed99fcaaa540d16ced6c1a63fea985712ef33 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 29 Dec 2020 17:51:46 -0500 Subject: [PATCH] Create a json-integration feature flag and disable building the CLI program without it. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 189129c..3814777 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,10 @@ version = "0.1.0" authors = ["Tom Alexander "] edition = "2018" +[features] +default = [] +json-integration = [] + [lib] name = "duster" path = "src/lib.rs" @@ -11,6 +15,7 @@ path = "src/lib.rs" [[bin]] name = "duster-cli" path = "src/bin.rs" +required-features = ["json-integration"] [dependencies] nom = { git = "https://github.com/tomalexander/nom.git", branch = "take_until_parser_matches" }