From c8632e152b944d3cb4d64886e050080dc1274439 Mon Sep 17 00:00:00 2001 From: adumbidiot Date: Sun, 2 Feb 2020 15:48:45 -0800 Subject: [PATCH] Made "structopt" dependency optional under "cli" feature flag --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1946c3919ec..64e03ba307d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,8 @@ edition = "2018" default-run = "boa" [features] -default = ["wasm-bindgen"] +default = ["wasm-bindgen", "cli"] +cli = ["structopt"] [dependencies] gc = "^0.3.3" @@ -20,10 +21,10 @@ gc_derive = "^0.3.2" serde_json = "^1.0.40" rand = "^0.7.0" regex = "^1.3.0" -structopt = "0.3.2" # Optional Dependencies wasm-bindgen = { version = "^0.2.50", optional = true } +structopt = { version = "0.3.2", optional = true } [dev-dependencies] criterion = "^0.3.0" @@ -59,3 +60,4 @@ bench = false name = "boashell" path = "src/bin/shell.rs" bench = false +required-features = ["cli"]