From 27bda13591a57995708f60bdcb3cbe50b9bb42ec Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY <974153916@qq.com> Date: Tue, 11 Oct 2022 19:20:14 +0800 Subject: [PATCH] build(cargo): Remove unused deps (#6117) --- Cargo.lock | 21 ---------------- crates/swc_cached/Cargo.toml | 1 - crates/swc_config/Cargo.toml | 21 ++++++++-------- crates/swc_css_codegen_macros/Cargo.toml | 26 ++++++++++---------- crates/swc_css_compat/Cargo.toml | 17 ++++++------- crates/swc_css_modules/Cargo.toml | 1 - crates/swc_ecma_quote/Cargo.toml | 1 - crates/swc_ecma_testing/Cargo.toml | 12 +++------ crates/swc_ecma_transforms_compat/Cargo.toml | 1 - crates/swc_html_codegen_macros/Cargo.toml | 17 +++++++------ crates/swc_plugin_proxy/Cargo.toml | 2 +- crates/swc_xml_parser/Cargo.toml | 2 -- 12 files changed, 46 insertions(+), 76 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 78029bfd4d6..b7e561d3059 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1917,15 +1917,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "ordered-float" -version = "2.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7940cf2ca942593318d07fcf2596cdca60a85c9e7fab408a5e21a4f9dcd40d87" -dependencies = [ - "num-traits", -] - [[package]] name = "os_str_bytes" version = "6.0.0" @@ -3081,7 +3072,6 @@ dependencies = [ "once_cell", "regex", "serde", - "swc_atoms", ] [[package]] @@ -3125,7 +3115,6 @@ dependencies = [ name = "swc_config" version = "0.1.3" dependencies = [ - "anyhow", "indexmap", "serde", "serde_json", @@ -3254,7 +3243,6 @@ name = "swc_css_compat" version = "0.3.0" dependencies = [ "once_cell", - "preset_env_base", "serde", "serde_json", "swc_atoms", @@ -3316,7 +3304,6 @@ dependencies = [ "swc_css_codegen", "swc_css_parser", "swc_css_visit", - "swc_ecma_loader", "testing", ] @@ -3604,7 +3591,6 @@ dependencies = [ "swc_common", "swc_ecma_ast", "swc_ecma_quote_macros", - "swc_ecma_utils", "testing", ] @@ -3631,10 +3617,6 @@ dependencies = [ "anyhow", "hex", "sha-1", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "testing", "tracing", ] @@ -3710,7 +3692,6 @@ dependencies = [ "indexmap", "is-macro", "num-bigint", - "ordered-float", "rayon", "serde", "serde_json", @@ -4364,12 +4345,10 @@ dependencies = [ name = "swc_xml_parser" version = "0.4.6" dependencies = [ - "criterion", "serde", "serde_json", "swc_atoms", "swc_common", - "swc_node_base", "swc_xml_ast", "swc_xml_visit", "testing", diff --git a/crates/swc_cached/Cargo.toml b/crates/swc_cached/Cargo.toml index cb2d35f4f74..f5c8a4a2739 100644 --- a/crates/swc_cached/Cargo.toml +++ b/crates/swc_cached/Cargo.toml @@ -19,4 +19,3 @@ dashmap = "5.1.0" once_cell = "1.10.0" regex = "1.5.4" serde = "1.0.136" -swc_atoms = { version = "0.4.18", path = "../swc_atoms" } diff --git a/crates/swc_config/Cargo.toml b/crates/swc_config/Cargo.toml index d18c2104282..f7aa0098d71 100644 --- a/crates/swc_config/Cargo.toml +++ b/crates/swc_config/Cargo.toml @@ -1,16 +1,15 @@ [package] -authors = ["강동윤 "] -description = "Types for configuring swc" +authors = ["강동윤 "] +description = "Types for configuring swc" documentation = "https://rustdoc.swc.rs/swc_config/" -edition = "2021" -license = "Apache-2.0" -name = "swc_config" -repository = "https://github.com/swc-project/swc.git" -version = "0.1.3" +edition = "2021" +license = "Apache-2.0" +name = "swc_config" +repository = "https://github.com/swc-project/swc.git" +version = "0.1.3" [dependencies] -anyhow = "1" -indexmap = "1.6.1" -serde = { version = "1", features = ["derive"] } -serde_json = "1" +indexmap = "1.6.1" +serde = { version = "1", features = ["derive"] } +serde_json = "1" swc_config_macro = { version = "0.1.0", path = "../swc_config_macro" } diff --git a/crates/swc_css_codegen_macros/Cargo.toml b/crates/swc_css_codegen_macros/Cargo.toml index 8d16e305fc4..a94da86ff18 100644 --- a/crates/swc_css_codegen_macros/Cargo.toml +++ b/crates/swc_css_codegen_macros/Cargo.toml @@ -1,20 +1,20 @@ [package] -authors = ["강동윤 "] -description = "Internal macro for the css code generator" +authors = ["강동윤 "] +description = "Internal macro for the css code generator" documentation = "https://rustdoc.swc.rs/swc_css_codegen_macros/" -edition = "2021" -license = "Apache-2.0" -name = "swc_css_codegen_macros" -repository = "https://github.com/swc-project/swc.git" -version = "0.2.0" +edition = "2021" +license = "Apache-2.0" +name = "swc_css_codegen_macros" +repository = "https://github.com/swc-project/swc.git" +version = "0.2.0" [lib] -bench = false +bench = false proc-macro = true [dependencies] -pmutil = "0.5.1" -proc-macro2 = "1" -quote = "1" -swc_macros_common = {version = "0.3.4", path = "../swc_macros_common"} -syn = {version = "1", features = ["fold"]} +pmutil = "0.5.1" +proc-macro2 = "1" +quote = "1" +swc_macros_common = { version = "0.3.4", path = "../swc_macros_common" } +syn = { version = "1", features = ["fold"] } diff --git a/crates/swc_css_compat/Cargo.toml b/crates/swc_css_compat/Cargo.toml index f8e138fb781..7bdf1b20610 100644 --- a/crates/swc_css_compat/Cargo.toml +++ b/crates/swc_css_compat/Cargo.toml @@ -13,15 +13,14 @@ version = "0.3.0" bench = false [dependencies] -once_cell = "1.10.0" -preset_env_base = { version = "0.3.2", path = "../preset_env_base" } -serde = { version = "1.0.118", features = ["derive"] } -serde_json = "1.0.61" -swc_atoms = { version = "0.4.18", path = "../swc_atoms" } -swc_common = { version = "0.29.5", path = "../swc_common" } -swc_css_ast = { version = "0.118.0", path = "../swc_css_ast" } -swc_css_utils = { version = "0.115.0", path = "../swc_css_utils/" } -swc_css_visit = { version = "0.117.0", path = "../swc_css_visit" } +once_cell = "1.10.0" +serde = { version = "1.0.118", features = ["derive"] } +serde_json = "1.0.61" +swc_atoms = { version = "0.4.18", path = "../swc_atoms" } +swc_common = { version = "0.29.5", path = "../swc_common" } +swc_css_ast = { version = "0.118.0", path = "../swc_css_ast" } +swc_css_utils = { version = "0.115.0", path = "../swc_css_utils/" } +swc_css_visit = { version = "0.117.0", path = "../swc_css_visit" } [dev-dependencies] swc_css_codegen = { version = "0.128.0", path = "../swc_css_codegen" } diff --git a/crates/swc_css_modules/Cargo.toml b/crates/swc_css_modules/Cargo.toml index 645969cae1a..d42d0702b87 100644 --- a/crates/swc_css_modules/Cargo.toml +++ b/crates/swc_css_modules/Cargo.toml @@ -23,7 +23,6 @@ swc_css_ast = { version = "0.118.0", path = "../swc_css_ast" } swc_css_codegen = { version = "0.128.0", path = "../swc_css_codegen" } swc_css_parser = { version = "0.127.0", path = "../swc_css_parser" } swc_css_visit = { version = "0.117.0", path = "../swc_css_visit" } -swc_ecma_loader = { version = "0.41.5", path = "../swc_ecma_loader" } [dev-dependencies] serde_json = "1" diff --git a/crates/swc_ecma_quote/Cargo.toml b/crates/swc_ecma_quote/Cargo.toml index 07fb9fc8d4a..86d754943f4 100644 --- a/crates/swc_ecma_quote/Cargo.toml +++ b/crates/swc_ecma_quote/Cargo.toml @@ -16,7 +16,6 @@ swc_atoms = { version = "0.4.18", path = "../swc_atoms" } swc_common = { version = "0.29.5", path = "../swc_common" } swc_ecma_ast = { version = "0.94.6", path = "../swc_ecma_ast" } swc_ecma_quote_macros = { version = "0.33.7", path = "../swc_ecma_quote_macros" } -swc_ecma_utils = { version = "0.105.9", path = "../swc_ecma_utils" } [dev-dependencies] testing = { version = "0.31.5", path = "../testing" } diff --git a/crates/swc_ecma_testing/Cargo.toml b/crates/swc_ecma_testing/Cargo.toml index 14ed35f5581..e41b0d4feaf 100644 --- a/crates/swc_ecma_testing/Cargo.toml +++ b/crates/swc_ecma_testing/Cargo.toml @@ -12,11 +12,7 @@ version = "0.20.7" bench = false [dependencies] -anyhow = "1" -hex = "0.4" -sha-1 = "0.10" -swc_atoms = { version = "0.4.18", path = "../swc_atoms" } -swc_common = { version = "0.29.5", path = "../swc_common" } -swc_ecma_ast = { version = "0.94.6", path = "../swc_ecma_ast" } -testing = { version = "0.31.5", path = "../testing" } -tracing = "0.1.32" +anyhow = "1" +hex = "0.4" +sha-1 = "0.10" +tracing = "0.1.32" diff --git a/crates/swc_ecma_transforms_compat/Cargo.toml b/crates/swc_ecma_transforms_compat/Cargo.toml index 03fb1ccdd0a..9e860d8e869 100644 --- a/crates/swc_ecma_transforms_compat/Cargo.toml +++ b/crates/swc_ecma_transforms_compat/Cargo.toml @@ -25,7 +25,6 @@ arrayvec = "0.7.2" indexmap = "1.6.1" is-macro = "0.2.0" num-bigint = "0.4" -ordered-float = "2.0.1" rayon = { version = "1.5.1", optional = true } serde = { version = "1.0.118", features = ["derive"] } smallvec = "1.8.0" diff --git a/crates/swc_html_codegen_macros/Cargo.toml b/crates/swc_html_codegen_macros/Cargo.toml index db33980c712..aea80210493 100644 --- a/crates/swc_html_codegen_macros/Cargo.toml +++ b/crates/swc_html_codegen_macros/Cargo.toml @@ -1,5 +1,8 @@ [package] -authors = ["강동윤 ", "Alexander Akait "] +authors = [ + "강동윤 ", + "Alexander Akait ", +] description = "Internal macro for the html code generator" documentation = "https://rustdoc.swc.rs/swc_html_codegen_macros/" edition = "2021" @@ -9,12 +12,12 @@ repository = "https://github.com/swc-project/swc.git" version = "0.2.0" [lib] -bench = false +bench = false proc-macro = true [dependencies] -pmutil = "0.5.1" -proc-macro2 = "1" -quote = "1" -swc_macros_common = {version = "0.3.4", path = "../swc_macros_common"} -syn = {version = "1", features = ["fold"]} +pmutil = "0.5.1" +proc-macro2 = "1" +quote = "1" +swc_macros_common = { version = "0.3.4", path = "../swc_macros_common" } +syn = { version = "1", features = ["fold"] } diff --git a/crates/swc_plugin_proxy/Cargo.toml b/crates/swc_plugin_proxy/Cargo.toml index 6dca3cb1b98..cfa62cfc063 100644 --- a/crates/swc_plugin_proxy/Cargo.toml +++ b/crates/swc_plugin_proxy/Cargo.toml @@ -42,6 +42,6 @@ rkyv = { package = "rkyv", version = "=0.7.37", optional = true } # cannot be merged. rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true } swc_common = { version = "0.29.5", path = "../swc_common" } -swc_ecma_ast = { version = "0.94.6", path = "../swc_ecma_ast" } +swc_ecma_ast = { version = "0.94.6", path = "../swc_ecma_ast" } swc_trace_macro = { version = "0.1.2", path = "../swc_trace_macro" } tracing = "0.1.32" diff --git a/crates/swc_xml_parser/Cargo.toml b/crates/swc_xml_parser/Cargo.toml index 2fc644e0e5e..ef7ad75ed66 100644 --- a/crates/swc_xml_parser/Cargo.toml +++ b/crates/swc_xml_parser/Cargo.toml @@ -24,9 +24,7 @@ swc_common = { version = "0.29.5", path = "../swc_common" } swc_xml_ast = { version = "0.4.6", path = "../swc_xml_ast" } [dev-dependencies] -criterion = "0.3" serde = "1.0.127" serde_json = "1.0.66" -swc_node_base = { version = "0.5.0", path = "../swc_node_base" } swc_xml_visit = { version = "0.4.6", path = "../swc_xml_visit" } testing = { version = "0.31.5", path = "../testing" }