From deb0d167e81ef5184cdd7b4b7541f4f086b84c45 Mon Sep 17 00:00:00 2001 From: Brendan Hansknecht Date: Sat, 6 Nov 2021 15:07:21 -0700 Subject: [PATCH] Minimize clap features --- Cargo.lock | 28 ---------------------------- cli/Cargo.toml | 2 +- linker/Cargo.toml | 2 +- 3 files changed, 2 insertions(+), 30 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d791ff26fb..a1f95bf19b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -438,27 +438,11 @@ checksum = "feff3878564edb93745d58cf63e17b63f24142506e7a20c87a5521ed7bfb1d63" dependencies = [ "atty", "bitflags", - "clap_derive", "indexmap", - "lazy_static", "os_str_bytes", "strsim 0.10.0", "termcolor", "textwrap 0.14.2", - "unicase", -] - -[[package]] -name = "clap_derive" -version = "3.0.0-beta.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b15c6b4f786ffb6192ffe65a36855bc1fc2444bcd0945ae16748dcd6ed7d0d3" -dependencies = [ - "heck", - "proc-macro-error", - "proc-macro2", - "quote", - "syn", ] [[package]] @@ -1582,15 +1566,6 @@ dependencies = [ "bumpalo", ] -[[package]] -name = "heck" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] - [[package]] name = "hermit-abi" version = "0.1.19" @@ -4215,9 +4190,6 @@ name = "textwrap" version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80" -dependencies = [ - "unicode-width", -] [[package]] name = "thiserror" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index d0666f52b7..0ba1aeaec9 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -64,7 +64,7 @@ roc_fmt = { path = "../compiler/fmt" } roc_reporting = { path = "../compiler/reporting" } roc_editor = { path = "../editor", optional = true } roc_linker = { path = "../linker" } -clap = "= 3.0.0-beta.5" +clap = { version = "= 3.0.0-beta.5", default-features = false, features = ["std", "color", "suggestions"] } const_format = "0.2.22" rustyline = { git = "https://github.com/rtfeldman/rustyline", tag = "prompt-fix" } rustyline-derive = { git = "https://github.com/rtfeldman/rustyline", tag = "prompt-fix" } diff --git a/linker/Cargo.toml b/linker/Cargo.toml index 227242d9bf..39cfdcdd37 100644 --- a/linker/Cargo.toml +++ b/linker/Cargo.toml @@ -22,7 +22,7 @@ roc_mono = { path = "../compiler/mono" } roc_build = { path = "../compiler/build", default-features = false } roc_collections = { path = "../compiler/collections" } bumpalo = { version = "3.8.0", features = ["collections"] } -clap = "= 3.0.0-beta.5" +clap = { version = "= 3.0.0-beta.5", default-features = false, features = ["std", "color", "suggestions"] } iced-x86 = { version = "1.15.0", default-features = false, features = ["std", "decoder", "op_code_info", "instr_info"] } memmap2 = "0.5.0" object = { version = "0.26.2", features = ["read", "write"] }