From cdfbaff5afbbf6f8d6aa4997b6dc73ca4320ecaa Mon Sep 17 00:00:00 2001 From: Peter Goodspeed-Niklaus Date: Thu, 13 Oct 2022 18:50:34 +0200 Subject: [PATCH] clap is optional --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b7cdda9..0c0f4c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ keywords = ["calculator", "cli"] [dependencies] anyhow = { version = "1.0.65", optional = true } -clap = { version = "4.0.14", features = ["derive"] } +clap = { version = "4.0.14", features = ["derive"], optional = true } lalrpop-util = { version = "0.19.8", features = ["lexer"] } lazy_static = "1.4.0" num-runtime-fmt = "0.1.2" @@ -30,6 +30,7 @@ lalrpop = "0.19.8" default = ["cli"] cli = [ "anyhow", + "clap", "rustyline", ]