From c6321a610cdc3d3449822045d3d902761975c85b Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Fri, 4 Nov 2022 12:35:21 -0300 Subject: [PATCH] fix(cli): remove unused dependencies, closes #5522 (#5543) --- tooling/cli/Cargo.lock | 141 +++-------------------------------------- tooling/cli/Cargo.toml | 8 --- 2 files changed, 8 insertions(+), 141 deletions(-) diff --git a/tooling/cli/Cargo.lock b/tooling/cli/Cargo.lock index 82b62f703..a8b71e755 100644 --- a/tooling/cli/Cargo.lock +++ b/tooling/cli/Cargo.lock @@ -70,15 +70,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - [[package]] name = "ansi_term" version = "0.12.1" @@ -357,36 +348,12 @@ dependencies = [ "uuid 0.8.2", ] -[[package]] -name = "cfb" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" -dependencies = [ - "byteorder", - "fnv", - "uuid 1.1.2", -] - [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "chrono" -version = "0.4.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1" -dependencies = [ - "iana-time-zone", - "num-integer", - "num-traits", - "serde", - "winapi", -] - [[package]] name = "chunked_transfer" version = "1.4.0" @@ -671,18 +638,8 @@ version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c" dependencies = [ - "darling_core 0.13.4", - "darling_macro 0.13.4", -] - -[[package]] -name = "darling" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4529658bdda7fd6769b8614be250cdcfc3aeb0ee72fe66f9e41e5e5eb73eac02" -dependencies = [ - "darling_core 0.14.1", - "darling_macro 0.14.1", + "darling_core", + "darling_macro", ] [[package]] @@ -699,38 +656,13 @@ dependencies = [ "syn", ] -[[package]] -name = "darling_core" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "649c91bc01e8b1eac09fb91e8dbc7d517684ca6be8ebc75bb9cafc894f9fdb6f" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim 0.10.0", - "syn", -] - [[package]] name = "darling_macro" version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835" dependencies = [ - "darling_core 0.13.4", - "quote", - "syn", -] - -[[package]] -name = "darling_macro" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc69c5bfcbd2fc09a0f38451d2daf0e372e367986a83906d1b0dbc88134fb5" -dependencies = [ - "darling_core 0.14.1", + "darling_core", "quote", "syn", ] @@ -1307,19 +1239,6 @@ dependencies = [ "want", ] -[[package]] -name = "iana-time-zone" -version = "0.1.50" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd911b35d940d2bd0bea0f9100068e5b97b51a1cbe13d13382f132e0365257a0" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "js-sys", - "wasm-bindgen", - "winapi", -] - [[package]] name = "ident_case" version = "1.0.1" @@ -1401,7 +1320,6 @@ checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", "hashbrown", - "serde", ] [[package]] @@ -1410,16 +1328,7 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "20b2b533137b9cad970793453d4f921c2e91312a6d88b1085c07bc15fc51bb3b" dependencies = [ - "cfb 0.6.1", -] - -[[package]] -name = "infer" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f178e61cdbfe084aa75a2f4f7a25a5bb09701a47ae1753608f194b15783c937a" -dependencies = [ - "cfb 0.7.3", + "cfb", ] [[package]] @@ -2898,23 +2807,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "678b5a069e50bf00ecd22d0cd8ddf7c236f68581b03db652061ed5eb13a312ff" dependencies = [ "serde", - "serde_with_macros 1.5.2", -] - -[[package]] -name = "serde_with" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368f2d60d049ea019a84dcd6687b0d1e0030fe663ae105039bdf967ed5e6a9a7" -dependencies = [ - "base64", - "chrono", - "hex", - "indexmap", - "serde", - "serde_json", - "serde_with_macros 2.0.1", - "time", + "serde_with_macros", ] [[package]] @@ -2923,19 +2816,7 @@ version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e182d6ec6f05393cc0e5ed1bf81ad6db3a8feedf8ee515ecdd369809bcce8082" dependencies = [ - "darling 0.13.4", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_with_macros" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ccadfacf6cf10faad22bbadf55986bdd0856edfb5d9210aa1dcf1f516e84e93" -dependencies = [ - "darling 0.14.1", + "darling", "proc-macro2", "quote", "syn", @@ -3251,18 +3132,15 @@ dependencies = [ "ctrlc", "dialoguer", "env_logger", - "glob", "handlebars", "heck 0.4.0", "html5ever", "ignore", "image", "include_dir", - "infer 0.9.0", "json-patch", "jsonschema", "kuchiki", - "lazy_static", "libc", "log", "minisign", @@ -3275,12 +3153,10 @@ dependencies = [ "semver", "serde", "serde_json", - "serde_with 2.0.1", "shared_child", "tauri-bundler", "tauri-icns", "tauri-utils", - "tempfile", "tokio", "toml", "toml_edit", @@ -3322,7 +3198,7 @@ dependencies = [ "glob", "heck 0.4.0", "html5ever", - "infer 0.7.0", + "infer", "json-patch", "json5", "kuchiki", @@ -3332,7 +3208,7 @@ dependencies = [ "semver", "serde", "serde_json", - "serde_with 1.14.0", + "serde_with", "serialize-to-javascript", "thiserror", "toml", @@ -3458,7 +3334,6 @@ dependencies = [ "itoa 1.0.2", "libc", "num_threads", - "serde", "time-macros", ] diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index 7afecbba6..c17c73bd5 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -46,7 +46,6 @@ colored = "2.0" once_cell = "1" serde = { version = "1.0", features = [ "derive" ] } serde_json = "1.0" -serde_with = "2.0" notify = "5.0" notify-debouncer-mini = "0.2" shared_child = "1.0" @@ -63,11 +62,8 @@ ureq = "2.5" os_info = "3.5" semver = "1.0" regex = "1.6.0" -lazy_static = "1" unicode-width = "0.1" -tempfile = "3" zeroize = "1.5" -glob = "0.3" heck = "0.4" dialoguer = "0.10" url = { version = "2.3", features = [ "serde" ] } @@ -80,7 +76,6 @@ icns = { package = "tauri-icns", version = "0.1" } image = { version = "0.24", default-features = false, features = [ "ico" ] } axum = { version = "0.5.16", features = ["ws"] } html5ever = "0.25" -infer = "0.9" kuchiki = "0.8" tokio = { version = "1", features = ["macros", "sync"] } common-path = "1" @@ -91,8 +86,5 @@ winapi = { version = "0.3", features = [ "handleapi", "processenv", "winbase", " [target."cfg(unix)".dependencies] libc = "0.2" -[target."cfg(target_os = \"linux\")".build-dependencies] -heck = "0.4" - [profile.release] lto = true