From 82860afeddd86a4530079c0fad7a8421d70fecb7 Mon Sep 17 00:00:00 2001 From: Boshen Date: Fri, 15 Mar 2024 19:41:41 +0800 Subject: [PATCH] chore: remove unused dependencies --- .taplo.toml | 2 ++ Cargo.lock | 32 ++------------------------ Cargo.toml | 8 +------ crates/cargo-rst/Cargo.toml | 4 ---- crates/node_binding/Cargo.toml | 3 --- crates/rspack_loader_runner/Cargo.toml | 5 ---- crates/rspack_loader_swc/Cargo.toml | 2 -- crates/rspack_plugin_copy/Cargo.toml | 6 ----- crates/rspack_plugin_css/Cargo.toml | 2 -- 9 files changed, 5 insertions(+), 59 deletions(-) diff --git a/.taplo.toml b/.taplo.toml index 0d808ef42c9..ef659b766bf 100644 --- a/.taplo.toml +++ b/.taplo.toml @@ -1,3 +1,5 @@ +include = ["Cargo.toml", "crates/*/*.toml"] + # https://taplo.tamasfe.dev/configuration/formatter-options.html [formatting] align_entries = true diff --git a/Cargo.lock b/Cargo.lock index aaae5eae607..a059ecef6be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -394,9 +394,7 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" dependencies = [ - "lazy_static", "memchr", - "regex-automata 0.1.10", ] [[package]] @@ -453,7 +451,6 @@ dependencies = [ "serde", "serde_json", "similar", - "testing_macros", ] [[package]] @@ -1524,12 +1521,6 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" -[[package]] -name = "hrx-parser" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb741d1d6fce95c065abb032a5f302299520a23928a95e96ab64799b5fd97f3a" - [[package]] name = "hstr" version = "0.2.6" @@ -2378,9 +2369,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4b27ab7be369122c218afc2079489cdcb4b517c0a3fc386ff11e1fedfcc2b35" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "path-clean" @@ -3280,7 +3271,6 @@ dependencies = [ "rspack_sources", "rustc-hash", "serde_json", - "similar-asserts", "tokio", ] @@ -3292,7 +3282,6 @@ dependencies = [ "async-trait", "dashmap", "either", - "indexmap 2.2.5", "jsonc-parser 0.23.0", "once_cell", "rspack_ast", @@ -3307,7 +3296,6 @@ dependencies = [ "serde_json", "swc_config", "swc_core", - "tokio", "xxhash-rust", ] @@ -3348,7 +3336,6 @@ dependencies = [ "rspack_hook", "rspack_napi", "rspack_tracing", - "testing_macros", "tokio", "tracing", ] @@ -3400,10 +3387,8 @@ dependencies = [ "rspack_futures", "rspack_hash", "rspack_hook", - "rspack_testing", "rustc-hash", "sugar_path", - "testing_macros", "tokio", ] @@ -3414,9 +3399,7 @@ dependencies = [ "async-trait", "bitflags 2.4.2", "heck 0.5.0", - "hrx-parser", "indexmap 1.9.3", - "insta", "once_cell", "rayon", "regex", @@ -4202,17 +4185,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32fea41aca09ee824cc9724996433064c89f7777e60762749a4170a14abbfa21" dependencies = [ "bstr", - "unicode-segmentation", -] - -[[package]] -name = "similar-asserts" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e041bb827d1bfca18f213411d51b665309f1afb37a04a5d1464530e13779fc0f" -dependencies = [ - "console", - "similar", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index f6081424a6f..ac5f966d6d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,6 @@ anyhow = { version = "1.0.81", features = ["backtrace"] } async-recursion = { version = "1.0.5" } async-scoped = { version = "0.9.0" } async-trait = { version = "0.1.77" } -backtrace = "0.3" better_scoped_tls = { version = "0.1.1" } bitflags = { version = "2.4.2" } colored = { version = "2.1.0" } @@ -16,7 +15,6 @@ dashmap = { version = "5.5.3" } derivative = { version = "2.2.0" } derive_builder = { version = "0.20.0" } futures = { version = "0.3.30" } -futures-util = { version = "0.3.30" } glob = { version = "0.3.1" } hashlink = { version = "0.9.0" } indexmap = { version = "2.2.5" } @@ -30,8 +28,6 @@ once_cell = { version = "1.19.0" } paste = { version = "1.0" } path-clean = { version = "1.0.1" } pathdiff = { version = "0.2.1" } -preset_env_base = { version = "0.4.11" } -proc-macro2 = { version = "1.0.79" } quote = { version = "1.0.35" } rayon = { version = "1.9.0" } regex = { version = "1.10.3" } @@ -56,21 +52,19 @@ xxhash-rust = { version = "0.8.10" } napi = { git = "https://github.com/h-a-n-a/napi-rs", branch = "rspack" } napi-build = { git = "https://github.com/h-a-n-a/napi-rs", branch = "rspack" } napi-derive = { git = "https://github.com/h-a-n-a/napi-rs", branch = "rspack" } -napi-sys = { git = "https://github.com/h-a-n-a/napi-rs", branch = "rspack" } tikv-jemallocator = { version = "=0.5.4", features = ["disable_initial_exec_tls"] } # Must be pinned with the same swc versions +rkyv = { version = "=0.7.42" } # synced with swc wasm plugin styled_components = { version = "=0.96.3" } swc_config = { version = "=0.1.10" } swc_core = { version = "=0.89.6", default-features = false } -swc_css = { version = "=0.157.32" } swc_ecma_minifier = { version = "=0.191.7", default-features = false } swc_emotion = { version = "=0.72.2" } swc_error_reporters = { version = "=0.17.14" } swc_html = { version = "=0.136.7" } swc_html_minifier = { version = "=0.133.7" } swc_node_comments = { version = "=0.20.14" } -rkyv = { version = "=0.7.42" } # synced with swc wasm plugin [profile.dev] codegen-units = 16 # debug build will cause runtime panic if codegen-unints is default diff --git a/crates/cargo-rst/Cargo.toml b/crates/cargo-rst/Cargo.toml index 9cc884af422..d7ab8f362de 100644 --- a/crates/cargo-rst/Cargo.toml +++ b/crates/cargo-rst/Cargo.toml @@ -5,10 +5,6 @@ name = "cargo-rst" repository = "https://github.com/web-infra-dev/rspack" version = "0.1.0" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[dev-dependencies] -testing_macros = { workspace = true } - [dependencies] derive_builder = { workspace = true } glob = { workspace = true } diff --git a/crates/node_binding/Cargo.toml b/crates/node_binding/Cargo.toml index dee8a6dd0d5..5e55b9efca8 100644 --- a/crates/node_binding/Cargo.toml +++ b/crates/node_binding/Cargo.toml @@ -36,6 +36,3 @@ color-backtrace = "0.6" [build-dependencies] napi-build = { workspace = true } - -[dev-dependencies] -testing_macros = { workspace = true } diff --git a/crates/rspack_loader_runner/Cargo.toml b/crates/rspack_loader_runner/Cargo.toml index c838f343ce4..8349353eedf 100644 --- a/crates/rspack_loader_runner/Cargo.toml +++ b/crates/rspack_loader_runner/Cargo.toml @@ -5,11 +5,6 @@ name = "rspack_loader_runner" repository = "https://github.com/web-infra-dev/rspack" version = "0.1.0" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dev-dependencies] -similar-asserts = "1.5.0" - [dependencies] anymap = "1.0.0-beta.2" async-recursion = { workspace = true } diff --git a/crates/rspack_loader_swc/Cargo.toml b/crates/rspack_loader_swc/Cargo.toml index 56e5fcb9df2..00133bb4667 100644 --- a/crates/rspack_loader_swc/Cargo.toml +++ b/crates/rspack_loader_swc/Cargo.toml @@ -36,6 +36,4 @@ swc_core = { workspace = true, features = ["base", "ecma_ast", " xxhash-rust = { workspace = true, features = ["xxh32"] } [dev-dependencies] -indexmap = { workspace = true } rspack_testing = { path = "../rspack_testing" } -tokio = { workspace = true } diff --git a/crates/rspack_plugin_copy/Cargo.toml b/crates/rspack_plugin_copy/Cargo.toml index a57cc98e633..66c8540fac5 100644 --- a/crates/rspack_plugin_copy/Cargo.toml +++ b/crates/rspack_plugin_copy/Cargo.toml @@ -5,12 +5,6 @@ name = "rspack_plugin_copy" repository = "https://github.com/web-infra-dev/rspack" version = "0.1.0" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dev-dependencies] -rspack_testing = { path = "../rspack_testing" } -testing_macros = { workspace = true } - [dependencies] dashmap = { workspace = true } glob = { workspace = true } diff --git a/crates/rspack_plugin_css/Cargo.toml b/crates/rspack_plugin_css/Cargo.toml index c99157fe458..656e0aa0926 100644 --- a/crates/rspack_plugin_css/Cargo.toml +++ b/crates/rspack_plugin_css/Cargo.toml @@ -40,6 +40,4 @@ tracing = { workspace = true } urlencoding = { workspace = true } [dev-dependencies] -hrx-parser = "0.1.1" -insta = { workspace = true } rspack_testing = { path = "../rspack_testing" }