From a7a856821d3cdec63ec06a654eae1c78c64f8fa6 Mon Sep 17 00:00:00 2001 From: Nicolas Abril Date: Sat, 9 Sep 2023 10:59:23 +0200 Subject: [PATCH] Add explicit cargo bin, make clap dep for cli only --- Cargo.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 31c3387f..1cf86c0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,11 +3,22 @@ name = "hvm-lang" version = "0.1.0" edition = "2021" +[lib] +name = "hvm_lang" + +[[bin]] +name = "hvm-lang" +required-features = ["cli"] + +[features] +default = ["cli"] +cli = ["clap"] + [dependencies] anyhow = "1.0.72" ariadne = "0.3.0" chumsky = "1.0.0-alpha.4" -clap = { version = "4.4.1", features = ["derive"] } +clap = { version = "4.4.1", features = ["derive"], optional = true } derive_more = "0.99.17" hvm-core = { git = "https://github.com/HigherOrderCO/hvm-core.git" } # hvm-core = { path = "../hvm-core/rust" }