From 0742d07292c907bfe0ac0dae3b7a9ba8180e3142 Mon Sep 17 00:00:00 2001 From: magic-akari Date: Mon, 29 Apr 2024 00:31:09 +0800 Subject: [PATCH 1/2] chore: apply `cargo autoinherit` --- Cargo.toml | 104 +++++++++++++++++- crates/ast_node/Cargo.toml | 9 +- crates/better_scoped_tls/Cargo.toml | 16 +-- crates/binding_macros/Cargo.toml | 26 +++-- crates/dbg-swc/Cargo.toml | 23 ++-- crates/from_variant/Cargo.toml | 9 +- crates/jsdoc/Cargo.toml | 8 +- crates/preset_env_base/Cargo.toml | 18 +-- crates/string_enum/Cargo.toml | 13 +-- crates/swc/Cargo.toml | 65 +++++------ crates/swc_atoms/Cargo.toml | 19 ++-- crates/swc_bundler/Cargo.toml | 32 +++--- crates/swc_cached/Cargo.toml | 12 +- crates/swc_cli_impl/Cargo.toml | 32 +++--- crates/swc_common/Cargo.toml | 48 ++++---- crates/swc_compiler_base/Cargo.toml | 16 +-- crates/swc_config/Cargo.toml | 10 +- crates/swc_config_macro/Cargo.toml | 6 +- crates/swc_core/Cargo.toml | 6 +- crates/swc_css_ast/Cargo.toml | 19 ++-- crates/swc_css_codegen/Cargo.toml | 8 +- crates/swc_css_codegen_macros/Cargo.toml | 6 +- crates/swc_css_compat/Cargo.toml | 8 +- crates/swc_css_lints/Cargo.toml | 12 +- crates/swc_css_minifier/Cargo.toml | 4 +- crates/swc_css_modules/Cargo.toml | 6 +- crates/swc_css_parser/Cargo.toml | 8 +- crates/swc_css_prefixer/Cargo.toml | 6 +- crates/swc_css_utils/Cargo.toml | 6 +- crates/swc_css_visit/Cargo.toml | 2 +- crates/swc_ecma_ast/Cargo.toml | 24 ++-- crates/swc_ecma_codegen/Cargo.toml | 20 ++-- crates/swc_ecma_codegen_macros/Cargo.toml | 12 +- crates/swc_ecma_compat_bugfixes/Cargo.toml | 2 +- crates/swc_ecma_compat_es2015/Cargo.toml | 14 +-- crates/swc_ecma_compat_es2016/Cargo.toml | 2 +- crates/swc_ecma_compat_es2017/Cargo.toml | 4 +- crates/swc_ecma_compat_es2018/Cargo.toml | 4 +- crates/swc_ecma_compat_es2019/Cargo.toml | 2 +- crates/swc_ecma_compat_es2020/Cargo.toml | 4 +- crates/swc_ecma_compat_es2021/Cargo.toml | 2 +- crates/swc_ecma_compat_es2022/Cargo.toml | 2 +- crates/swc_ecma_compat_es3/Cargo.toml | 2 +- crates/swc_ecma_ext_transforms/Cargo.toml | 2 +- crates/swc_ecma_lints/Cargo.toml | 12 +- crates/swc_ecma_loader/Cargo.toml | 20 ++-- crates/swc_ecma_minifier/Cargo.toml | 40 +++---- crates/swc_ecma_parser/Cargo.toml | 28 ++--- crates/swc_ecma_preset_env/Cargo.toml | 22 ++-- crates/swc_ecma_quote_macros/Cargo.toml | 8 +- crates/swc_ecma_testing/Cargo.toml | 8 +- crates/swc_ecma_transforms/Cargo.toml | 6 +- crates/swc_ecma_transforms_base/Cargo.toml | 22 ++-- crates/swc_ecma_transforms_compat/Cargo.toml | 18 +-- crates/swc_ecma_transforms_macros/Cargo.toml | 6 +- crates/swc_ecma_transforms_module/Cargo.toml | 22 ++-- .../Cargo.toml | 16 +-- .../swc_ecma_transforms_proposal/Cargo.toml | 10 +- crates/swc_ecma_transforms_react/Cargo.toml | 12 +- crates/swc_ecma_transforms_testing/Cargo.toml | 18 +-- .../swc_ecma_transforms_typescript/Cargo.toml | 6 +- crates/swc_ecma_usage_analyzer/Cargo.toml | 6 +- crates/swc_ecma_utils/Cargo.toml | 14 +-- crates/swc_ecma_visit/Cargo.toml | 6 +- crates/swc_eq_ignore_macros/Cargo.toml | 6 +- crates/swc_error_reporters/Cargo.toml | 8 +- crates/swc_estree_ast/Cargo.toml | 4 +- crates/swc_estree_compat/Cargo.toml | 18 +-- crates/swc_fast_graph/Cargo.toml | 6 +- crates/swc_graph_analyzer/Cargo.toml | 6 +- crates/swc_html_ast/Cargo.toml | 8 +- crates/swc_html_codegen/Cargo.toml | 6 +- crates/swc_html_codegen_macros/Cargo.toml | 6 +- crates/swc_html_minifier/Cargo.toml | 8 +- crates/swc_html_parser/Cargo.toml | 6 +- crates/swc_html_utils/Cargo.toml | 6 +- crates/swc_html_visit/Cargo.toml | 2 +- crates/swc_macros_common/Cargo.toml | 17 +-- crates/swc_node_bundler/Cargo.toml | 18 +-- crates/swc_node_comments/Cargo.toml | 2 +- crates/swc_nodejs_common/Cargo.toml | 15 +-- crates/swc_plugin/Cargo.toml | 2 +- crates/swc_plugin_macro/Cargo.toml | 6 +- crates/swc_plugin_proxy/Cargo.toml | 6 +- crates/swc_plugin_runner/Cargo.toml | 28 ++--- crates/swc_timer/Cargo.toml | 2 +- crates/swc_trace_macro/Cargo.toml | 22 ++-- crates/swc_visit/Cargo.toml | 2 +- crates/swc_visit_macros/Cargo.toml | 8 +- crates/swc_xml_ast/Cargo.toml | 4 +- crates/swc_xml_codegen/Cargo.toml | 6 +- crates/swc_xml_codegen_macros/Cargo.toml | 10 +- crates/swc_xml_parser/Cargo.toml | 4 +- crates/swc_xml_visit/Cargo.toml | 2 +- crates/testing/Cargo.toml | 18 +-- crates/testing_macros/Cargo.toml | 19 ++-- xtask/Cargo.toml | 16 +-- 97 files changed, 677 insertions(+), 573 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7ed1b0ea5e3e..c4c08aede05e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,6 +23,108 @@ members = [ "crates/swc_xml", ] resolver = "2" + + [workspace.dependencies] + Inflector = "0.11.4" + ahash = "0.8.8" + ansi_term = "0.12.1" + anyhow = "1.0.81" + arbitrary = "1" + arrayvec = "0.7.4" + assert_cmd = "2.0.12" + assert_fs = "1.0.13" + atty = "0.2.14" + auto_impl = "1.2.0" + backtrace = "0.3.61" + base64 = "0.21.0" + bitflags = "2.5.0" + browserslist-rs = "0.15.0" + bytecheck = "0.6.10" + cfg-if = "1.0.0" + chrono = "0.4.31" + console_error_panic_hook = "0.1.7" + copyless = "0.1.5" + crc = "2.1.0" + criterion = "0.5.1" + dashmap = "5.5.3" + dialoguer = "0.10.2" + difference = "2" + either = "1.10.0" + enumset = "1.1.2" + flate2 = "1.0" + futures = "0.3" + glob = "0.3.0" + hex = "0.4.3" + hstr = "0.2.8" + indexmap = "2.0.0" + is-macro = "0.3.5" + js-sys = "0.3.59" + jsonc-parser = "0.21.0" + lazy_static = "1.4.0" + lexical = "6.1.0" + lru = "0.10.0" + memchr = "2.6.1" + miette = "4.2.1" + napi = { version = "2.0.0", default-features = false } + napi-derive = { version = "2.0.0", default-features = false } + new_debug_unreachable = "1.0.4" + nom = "7.1.3" + ntest = "0.7.2" + num-bigint = "0.4.3" + num-traits = "0.2.15" + num_cpus = "1.13.1" + once_cell = "1.19.0" + parking_lot = "0.12.1" + path-absolutize = "3.0.11" + pathdiff = "0.2.1" + petgraph = "0.6.0" + phf = "0.11.2" + pretty_assertions = "1.3" + proc-macro2 = "1.0.24" + quote = "1.0.7" + rayon = "1.7.0" + regex = "1.5.4" + relative-path = "1.6.1" + reqwest = "0.11.14" + rkyv = "=0.7.44" + rustc-hash = "1.1.0" + ryu-js = "1.0.0" + scoped-tls = "1.0.1" + semver = "1.0.20" + serde = "1.0.197" + serde-wasm-bindgen = "0.4.5" + serde_derive = "1.0.197" + serde_json = "1.0.115" + sha1 = "0.10.5" + sha2 = "0.10.8" + siphasher = "0.3.9" + smallvec = "1.8.0" + smartstring = "1" + sourcemap = "8.0.0" + st-map = "0.2.0" + syn = "2" + tempfile = "3.6.0" + termcolor = "1.0" + thiserror = "1.0.30" + tokio = { version = "1", default-features = false } + toml = "0.8.2" + tracing = "0.1.40" + tracing-chrome = "0.5.0" + tracing-futures = "0.2.5" + tracing-subscriber = "0.3.18" + typed-arena = "2.0.1" + unicode-id = "0.3" + unicode-id-start = "1.1.2" + unicode-width = "0.1.4" + url = "2.4.0" + vergen = { version = "8.0.0", default-features = false } + virtual-fs = { version = "=0.11.1", default-features = false } + walkdir = "2.4.0" + wasm-bindgen = "0.2.91" + wasm-bindgen-futures = "0.4.41" + wasmer = { version = "4.2.5", default-features = false } + wasmer-wasix = { version = "0.18.0", default-features = false } + [profile.release] # lto = true @@ -41,4 +143,4 @@ debug = true opt-level = 3 [profile.dev.package."*"] -opt-level = 3 \ No newline at end of file +opt-level = 3 diff --git a/crates/ast_node/Cargo.toml b/crates/ast_node/Cargo.toml index 5f0852d71773..11f16c8fb6f4 100644 --- a/crates/ast_node/Cargo.toml +++ b/crates/ast_node/Cargo.toml @@ -13,11 +13,10 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" +proc-macro2 = { workspace = true } +quote = { workspace = true } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } - [dependencies.syn] - features = ["derive", "fold", "parsing", "printing", "visit-mut"] - version = "2" + features = ["derive", "fold", "parsing", "printing", "visit-mut"] + workspace = true diff --git a/crates/better_scoped_tls/Cargo.toml b/crates/better_scoped_tls/Cargo.toml index 04678e05688e..7dc31b53a397 100644 --- a/crates/better_scoped_tls/Cargo.toml +++ b/crates/better_scoped_tls/Cargo.toml @@ -1,15 +1,15 @@ [package] -authors = ["강동윤 "] -description = "scoped-tls, but with good error message" +authors = ["강동윤 "] +description = "scoped-tls, but with good error message" documentation = "https://rustdoc.swc.rs/better_scoped_tls/" -edition = "2021" -license = "Apache-2.0" -name = "better_scoped_tls" -repository = "https://github.com/swc-project/swc.git" -version = "0.1.1" +edition = "2021" +license = "Apache-2.0" +name = "better_scoped_tls" +repository = "https://github.com/swc-project/swc.git" +version = "0.1.1" [lib] bench = false [dependencies] -scoped-tls = "1.0.1" +scoped-tls = { workspace = true } diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index 2c65c79776bc..fba8c2edd996 100644 --- a/crates/binding_macros/Cargo.toml +++ b/crates/binding_macros/Cargo.toml @@ -40,13 +40,19 @@ swc_ecma_transforms = { optional = true, version = "0.230.0", path = "../swc_ecm swc_ecma_visit = { optional = true, version = "0.99.0", path = "../swc_ecma_visit" } # Optional deps for the wasm binding macro -anyhow = { optional = true, version = "1.0.81" } -console_error_panic_hook = { optional = true, version = "0.1.7" } -js-sys = { optional = true, version = "0.3.59" } -once_cell = { optional = true, version = "1.19.0" } -serde = { optional = true, version = "1", features = ["derive"] } -serde-wasm-bindgen = { optional = true, version = "0.4.5" } -wasm-bindgen = { optional = true, version = "0.2.91", features = [ - "enable-interning", -] } -wasm-bindgen-futures = { optional = true, version = "0.4.41" } +anyhow = { workspace = true, optional = true } +console_error_panic_hook = { workspace = true, optional = true } +js-sys = { workspace = true, optional = true } +once_cell = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } +serde-wasm-bindgen = { workspace = true, optional = true } + + + [dependencies.wasm-bindgen] + features = ["enable-interning"] + optional = true + workspace = true + + [dependencies.wasm-bindgen-futures] + optional = true + workspace = true diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index 83d3a0754c2e..ed1d9de949ce 100644 --- a/crates/dbg-swc/Cargo.toml +++ b/crates/dbg-swc/Cargo.toml @@ -12,18 +12,19 @@ bench = false name = "dbg-swc" [dependencies] -anyhow = "1.0.81" +anyhow = { workspace = true } +dialoguer = { workspace = true } +flate2 = { workspace = true } +rayon = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +sha1 = { workspace = true } +tempfile = { workspace = true } +tracing = { workspace = true } +url = { workspace = true } + clap = { version = "3", features = ["derive"] } -dialoguer = "0.10.2" -flate2 = "1.0" -rayon = "1.7.0" -serde = "1" -serde_json = "1" -sha1 = "0.10.5" -tempfile = "3.6.0" -tracing = "0.1.40" -tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter"] } -url = "2" +tracing-subscriber = { workspace = true, features = ["fmt", "env-filter"] } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", features = [ diff --git a/crates/from_variant/Cargo.toml b/crates/from_variant/Cargo.toml index 2536ebb724d3..1188fb884292 100644 --- a/crates/from_variant/Cargo.toml +++ b/crates/from_variant/Cargo.toml @@ -13,10 +13,9 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" +proc-macro2 = { workspace = true } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } - - [dependencies.syn] - features = ["derive", "fold", "parsing", "printing"] - version = "2" + [dependencies.syn] + features = ["derive", "fold", "parsing", "printing"] + workspace = true diff --git a/crates/jsdoc/Cargo.toml b/crates/jsdoc/Cargo.toml index 916298dd1f87..a17f7c4dc0a4 100644 --- a/crates/jsdoc/Cargo.toml +++ b/crates/jsdoc/Cargo.toml @@ -15,15 +15,15 @@ bench = false serde-impl = ["serde"] [dependencies] -nom = "7.1.3" -serde = { version = "1", features = ["derive"], optional = true } +nom = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } [dev-dependencies] -anyhow = "1" -dashmap = "5.5.3" +anyhow = { workspace = true } +dashmap = { workspace = true } swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } diff --git a/crates/preset_env_base/Cargo.toml b/crates/preset_env_base/Cargo.toml index ac57e6d9d04a..c13d771a57cc 100644 --- a/crates/preset_env_base/Cargo.toml +++ b/crates/preset_env_base/Cargo.toml @@ -11,14 +11,14 @@ version = "0.4.12" bench = false [dependencies] -ahash = "0.8.8" -anyhow = "1" -browserslist-rs = "0.15.0" -dashmap = "5.5.3" -once_cell = "1.19.0" -semver = { version = "1.0.17", features = ["serde"] } -serde = { version = "1", features = ["derive"] } -st-map = "0.2.0" -tracing = { version = "0.1.40" } +ahash = { workspace = true } +anyhow = { workspace = true } +browserslist-rs = { workspace = true } +dashmap = { workspace = true } +once_cell = { workspace = true } +semver = { workspace = true, features = ["serde"] } +serde = { workspace = true, features = ["derive"] } +st-map = { workspace = true } +tracing = { workspace = true } from_variant = { version = "0.1.7", path = "../from_variant" } diff --git a/crates/string_enum/Cargo.toml b/crates/string_enum/Cargo.toml index 0fe8cc7e85e7..96159f84533d 100644 --- a/crates/string_enum/Cargo.toml +++ b/crates/string_enum/Cargo.toml @@ -13,13 +13,12 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" +proc-macro2 = { workspace = true } +quote = { workspace = true } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } - - [dependencies.syn] - features = ["full", "parsing", "printing", "extra-traits"] - version = "2" + [dependencies.syn] + features = ["full", "parsing", "printing", "extra-traits"] + workspace = true [dev-dependencies] -serde = "1" +serde = { workspace = true } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 6d28ed7d8738..847cf74e391d 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -49,23 +49,23 @@ plugin_transform_host_native = [ ] [dependencies] -anyhow = "1" -base64 = "0.21.0" -dashmap = "5.5.3" -either = "1" -indexmap = { version = "2.0.0", features = ["serde"] } -jsonc-parser = { version = "0.21.0", features = ["serde"] } -lru = "0.10.0" -once_cell = "1.19.0" -parking_lot = "0.12.1" -pathdiff = "0.2.0" -regex = "1" -rustc-hash = "1.1.0" -serde = { version = "1", features = ["derive"] } -serde_json = "1" -sourcemap = "8.0" -tracing = "0.1.40" -url = "2.4.0" +anyhow = { workspace = true } +base64 = { workspace = true } +dashmap = { workspace = true } +either = { workspace = true } +indexmap = { workspace = true, features = ["serde"] } +jsonc-parser = { workspace = true, features = ["serde"] } +lru = { workspace = true } +once_cell = { workspace = true } +parking_lot = { workspace = true } +pathdiff = { workspace = true } +regex = { workspace = true } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +sourcemap = { workspace = true } +tracing = { workspace = true } +url = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_cached = { version = "0.3.19", path = "../swc_cached" } @@ -107,25 +107,29 @@ swc_plugin_proxy = { version = "0.42.0", path = "../swc_plugin_proxy", optional swc_plugin_runner = { version = "0.107.0", path = "../swc_plugin_runner", optional = true, default-features = false } swc_timer = { version = "0.21.21", path = "../swc_timer" } swc_visit = { version = "0.5.10", path = "../swc_visit" } -tokio = { version = "1", optional = true, features = ["rt", "rt-multi-thread"] } + [dependencies.tokio] + features = ["rt", "rt-multi-thread"] + optional = true + workspace = true - [dependencies.napi-derive] - default-features = false - features = ["type-def"] - optional = true - version = "2.0.0" [dependencies.napi] - default-features = false - features = ["napi3"] - optional = true - version = "2.0.0" + features = ["napi3"] + optional = true + workspace = true + + [dependencies.napi-derive] + features = ["type-def"] + optional = true + workspace = true [dev-dependencies] -ansi_term = "0.12" -criterion = "0.5" -rayon = "1.7.0" +ansi_term = { workspace = true } +criterion = { workspace = true } +rayon = { workspace = true } +walkdir = { workspace = true } + swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast", features = [ "serde-impl", ] } @@ -135,7 +139,6 @@ swc_ecma_lints = { version = "0.93.0", path = "../swc_ecma_lints", features = [ swc_ecma_testing = { version = "0.22.22", path = "../swc_ecma_testing" } swc_malloc = { version = "0.5.10", path = "../swc_malloc" } testing = { version = "0.35.21", path = "../testing" } -walkdir = "2" [[example]] name = "transform" diff --git a/crates/swc_atoms/Cargo.toml b/crates/swc_atoms/Cargo.toml index d10913c4390c..6ff5c27e4d48 100644 --- a/crates/swc_atoms/Cargo.toml +++ b/crates/swc_atoms/Cargo.toml @@ -17,12 +17,13 @@ rkyv-impl = ["__rkyv", "rkyv", "bytecheck"] [dependencies] # bytecheck version should be in sync with rkyv version. Do not bump individually. -bytecheck = { version = "0.6.10", optional = true } -hstr = "0.2.8" -once_cell = "1" -rkyv = { package = "rkyv", version = "=0.7.44", optional = true, features = [ - "strict", - "validation", -] } -rustc-hash = "1.1.0" -serde = "1" +bytecheck = { workspace = true, optional = true } +hstr = { workspace = true } +once_cell = { workspace = true } +rustc-hash = { workspace = true } +serde = { workspace = true } + + [dependencies.rkyv] + features = ["strict", "validation"] + optional = true + workspace = true diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 5f305d6b75a0..3916e01e4414 100644 --- a/crates/swc_bundler/Cargo.toml +++ b/crates/swc_bundler/Cargo.toml @@ -24,18 +24,18 @@ concurrent = ["swc_common/concurrent", "dashmap", "rayon", "indexmap/rayon"] default = [] [dependencies] -anyhow = "1" -crc = "2.1.0" -dashmap = { version = "5.5.3", optional = true } -indexmap = "2.0.0" -is-macro = "0.3.5" -once_cell = "1.19.0" -parking_lot = "0.12.1" -petgraph = "0.6" +anyhow = { workspace = true } +crc = { workspace = true } +dashmap = { workspace = true, optional = true } +indexmap = { workspace = true } +is-macro = { workspace = true } +once_cell = { workspace = true } +parking_lot = { workspace = true } +petgraph = { workspace = true } radix_fmt = "1" -rayon = { version = "1", optional = true } -relative-path = "1.2" -tracing = "0.1.40" +rayon = { workspace = true, optional = true } +relative-path = { workspace = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -51,13 +51,13 @@ swc_fast_graph = { version = "0.21.20", path = "../swc_fast_gr swc_graph_analyzer = { version = "0.22.22", path = "../swc_graph_analyzer/" } [dev-dependencies] -hex = "0.4" -ntest = "0.7.2" +hex = { workspace = true } +ntest = { workspace = true } path-clean = "=0.1.0" -reqwest = { version = "0.11.14", features = ["blocking"] } +reqwest = { workspace = true, features = ["blocking"] } sha-1 = "0.10" -tempfile = "3.6.0" -url = "2.4.0" +tempfile = { workspace = true } +url = { workspace = true } swc_ecma_loader = { version = "0.45.23", path = "../swc_ecma_loader", features = [ "node", diff --git a/crates/swc_cached/Cargo.toml b/crates/swc_cached/Cargo.toml index 1585dda30670..b1c2ee92692e 100644 --- a/crates/swc_cached/Cargo.toml +++ b/crates/swc_cached/Cargo.toml @@ -13,9 +13,9 @@ version = "0.3.20" bench = false [dependencies] -ahash = "0.8.8" -anyhow = "1.0.81" -dashmap = "5.5.3" -once_cell = "1.19.0" -regex = "1.5.4" -serde = "1.0.197" +ahash = { workspace = true } +anyhow = { workspace = true } +dashmap = { workspace = true } +once_cell = { workspace = true } +regex = { workspace = true } +serde = { workspace = true } diff --git a/crates/swc_cli_impl/Cargo.toml b/crates/swc_cli_impl/Cargo.toml index fba51c6ec030..6e2c5ffa568a 100644 --- a/crates/swc_cli_impl/Cargo.toml +++ b/crates/swc_cli_impl/Cargo.toml @@ -24,21 +24,21 @@ plugin = [ ] [dependencies] -anyhow = "1.0.81" -atty = "0.2.14" +anyhow = { workspace = true } +atty = { workspace = true } clap = { version = "3.2.25", features = ["derive", "wrap_help"] } -glob = "0.3.0" -path-absolutize = { version = "3.0.11", features = ["once_cell_cache"] } -rayon = "1" -relative-path = "1.6.1" -serde = { version = "1", features = ["derive"] } -serde_json = { version = "1", features = ["unbounded_depth"] } -sourcemap = "8.0.0" -tracing = "0.1.40" -tracing-chrome = "0.5.0" -tracing-futures = "0.2.5" -tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } -walkdir = "2" +glob = { workspace = true } +path-absolutize = { workspace = true, features = ["once_cell_cache"] } +rayon = { workspace = true } +relative-path = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true, features = ["unbounded_depth"] } +sourcemap = { workspace = true } +tracing = { workspace = true } +tracing-chrome = { workspace = true } +tracing-futures = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter"] } +walkdir = { workspace = true } swc_core = { version = "0.91.0", features = [ "trace_macro", @@ -47,5 +47,5 @@ swc_core = { version = "0.91.0", features = [ ], path = "../swc_core" } [dev-dependencies] -assert_cmd = "2.0.12" -assert_fs = "1.0.13" +assert_cmd = { workspace = true } +assert_fs = { workspace = true } diff --git a/crates/swc_common/Cargo.toml b/crates/swc_common/Cargo.toml index fb87b64dd248..e0c2dbaff364 100644 --- a/crates/swc_common/Cargo.toml +++ b/crates/swc_common/Cargo.toml @@ -37,30 +37,30 @@ __rkyv = [] rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "bytecheck"] [dependencies] -ahash = { version = "0.8.8", optional = true } -anyhow = { version = "1.0.81", optional = true } -arbitrary = { version = "1", optional = true, features = ["derive"] } -atty = { version = "0.2", optional = true } +ahash = { workspace = true, optional = true } +anyhow = { workspace = true, optional = true } +arbitrary = { workspace = true, features = ["derive"], optional = true } +atty = { workspace = true, optional = true } # bytecheck version should be in sync with rkyv version. Do not bump individually. -bytecheck = { version = "0.6.10", optional = true } -cfg-if = "1.0.0" -either = "1.10" -new_debug_unreachable = "1.0.4" -num-bigint = "0.4" -once_cell = "1.19.0" -parking_lot = { version = "0.12.1", optional = true } -rkyv = { version = "=0.7.44", optional = true, features = [ +bytecheck = { workspace = true, optional = true } +cfg-if = { workspace = true } +either = { workspace = true } +new_debug_unreachable = { workspace = true } +num-bigint = { workspace = true } +once_cell = { workspace = true } +parking_lot = { workspace = true, optional = true } +rkyv = { workspace = true, features = [ "strict", "validation", -] } -rustc-hash = "1.1.0" -serde = { version = "1.0.197", features = ["derive"] } -siphasher = "0.3.9" -sourcemap = { version = "8", optional = true } -termcolor = { version = "1.0", optional = true } -tracing = "0.1.40" -unicode-width = "0.1.4" -url = "2.4.0" +], optional = true } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"] } +siphasher = { workspace = true } +sourcemap = { workspace = true, optional = true } +termcolor = { workspace = true, optional = true } +tracing = { workspace = true } +unicode-width = { workspace = true } +url = { workspace = true } ast_node = { version = "0.9.6", path = "../ast_node" } better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" } @@ -71,9 +71,9 @@ swc_visit = { version = "0.5.10", path = "../swc_visit" } [dev-dependencies] -criterion = "0.5" -rayon = "1" -serde_json = "1" +criterion = { workspace = true } +rayon = { workspace = true } +serde_json = { workspace = true } [[bench]] harness = false diff --git a/crates/swc_compiler_base/Cargo.toml b/crates/swc_compiler_base/Cargo.toml index c5c8ac42563a..8ffab5627148 100644 --- a/crates/swc_compiler_base/Cargo.toml +++ b/crates/swc_compiler_base/Cargo.toml @@ -13,12 +13,12 @@ version = "0.8.0" node = ["napi", "napi-derive"] [dependencies] -anyhow = "1.0.81" -base64 = "0.21.0" -once_cell = "1" -pathdiff = "0.2.0" -serde = { version = "1.0.197", features = ["derive"] } -sourcemap = "8.0" +anyhow = { workspace = true } +base64 = { workspace = true } +once_cell = { workspace = true } +pathdiff = { workspace = true } +serde = { workspace = true, features = ["derive"] } +sourcemap = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common", features = [ @@ -36,10 +36,10 @@ swc_timer = { version = "0.21.21", path = "../swc_timer" } default-features = false features = ["type-def"] optional = true - version = "2.0.0" + workspace = true [dependencies.napi] default-features = false features = ["napi3"] optional = true - version = "2.0.0" + workspace = true diff --git a/crates/swc_config/Cargo.toml b/crates/swc_config/Cargo.toml index 6eb4c12b479b..5f5b2d22b8c7 100644 --- a/crates/swc_config/Cargo.toml +++ b/crates/swc_config/Cargo.toml @@ -9,11 +9,11 @@ repository = "https://github.com/swc-project/swc.git" version = "0.1.12" [dependencies] -anyhow = "1" -indexmap = "2.0.0" -serde = { version = "1", features = ["derive", "rc"] } -serde_json = "1" -sourcemap = { version = "8.0", optional = true } +anyhow = { workspace = true } +indexmap = { workspace = true } +serde = { workspace = true, features = ["derive", "rc"] } +serde_json = { workspace = true } +sourcemap = { workspace = true, optional = true } swc_cached = { version = "0.3.19", path = "../swc_cached" } swc_config_macro = { version = "0.1.3", path = "../swc_config_macro" } diff --git a/crates/swc_config_macro/Cargo.toml b/crates/swc_config_macro/Cargo.toml index 83c45c9fd740..2f78fc627019 100644 --- a/crates/swc_config_macro/Cargo.toml +++ b/crates/swc_config_macro/Cargo.toml @@ -13,8 +13,8 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" -syn = "2" +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 762e50f63803..9c66410272c3 100644 --- a/crates/swc_core/Cargo.toml +++ b/crates/swc_core/Cargo.toml @@ -327,7 +327,7 @@ __visit = ["__ecma", "swc_ecma_visit"] [dependencies] # 3rd party dependencies -once_cell = { optional = true, version = "1.19.0" } +once_cell = { workspace = true, optional = true } # swc_* dependencies binding_macros = { optional = true, version = "0.65.0", path = "../binding_macros" } @@ -376,7 +376,7 @@ testing = { optional = true, version = "0.35.21", path swc_plugin_runner = { optional = true, version = "0.107.0", path = "../swc_plugin_runner", default-features = false } [build-dependencies] -vergen = { version = "8.0.0", default-features = false, features = ["cargo"] } +vergen = { workspace = true, features = ["cargo"] } [dev-dependencies] -anyhow = "1.0.81" +anyhow = { workspace = true } diff --git a/crates/swc_css_ast/Cargo.toml b/crates/swc_css_ast/Cargo.toml index 9d0b9f494247..d68e1489a80d 100644 --- a/crates/swc_css_ast/Cargo.toml +++ b/crates/swc_css_ast/Cargo.toml @@ -18,13 +18,14 @@ rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"] serde-impl = ["serde"] [dependencies] -is-macro = "0.3.5" -rkyv = { version = "=0.7.44", optional = true, features = [ - "strict", - "validation", -] } -serde = { version = "1.0.197", features = ["derive"], optional = true } - +is-macro = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } string_enum = { version = "0.4.2", path = "../string_enum/" } -swc_atoms = { version = "0.6.5", path = "../swc_atoms" } -swc_common = { version = "0.33.20", path = "../swc_common" } + +swc_atoms = { version = "0.6.5", path = "../swc_atoms" } +swc_common = { version = "0.33.20", path = "../swc_common" } + + [dependencies.rkyv] + features = ["strict", "validation"] + optional = true + workspace = true diff --git a/crates/swc_css_codegen/Cargo.toml b/crates/swc_css_codegen/Cargo.toml index a99171cc87df..b400d02c7b61 100644 --- a/crates/swc_css_codegen/Cargo.toml +++ b/crates/swc_css_codegen/Cargo.toml @@ -13,10 +13,10 @@ version = "0.151.34" bench = false [dependencies] -auto_impl = "1.2.0" -bitflags = "2.5.0" -rustc-hash = "1.1.0" -serde = "1.0.197" +auto_impl = { workspace = true } +bitflags = { workspace = true } +rustc-hash = { workspace = true } +serde = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_css_codegen_macros/Cargo.toml b/crates/swc_css_codegen_macros/Cargo.toml index 89fa87ee075e..612750ebf383 100644 --- a/crates/swc_css_codegen_macros/Cargo.toml +++ b/crates/swc_css_codegen_macros/Cargo.toml @@ -13,8 +13,8 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" -syn = { version = "2", features = ["fold"] } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["fold"] } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } diff --git a/crates/swc_css_compat/Cargo.toml b/crates/swc_css_compat/Cargo.toml index 68fe4ef0b0fb..59cdce5bbe6b 100644 --- a/crates/swc_css_compat/Cargo.toml +++ b/crates/swc_css_compat/Cargo.toml @@ -13,10 +13,10 @@ version = "0.27.34" bench = false [dependencies] -bitflags = "2.5.0" -once_cell = "1.19.0" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = "1.0.115" +bitflags = { workspace = true } +once_cell = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_css_lints/Cargo.toml b/crates/swc_css_lints/Cargo.toml index 0f48cf30bb01..a2e230cdf90e 100644 --- a/crates/swc_css_lints/Cargo.toml +++ b/crates/swc_css_lints/Cargo.toml @@ -13,11 +13,11 @@ version = "0.60.32" bench = false [dependencies] -auto_impl = "1.2.0" -parking_lot = "0.12.1" -rayon = "1.7.0" -serde = { version = "1.0.197", features = ["derive"] } -thiserror = "1.0.30" +auto_impl = { workspace = true } +parking_lot = { workspace = true } +rayon = { workspace = true } +serde = { workspace = true, features = ["derive"] } +thiserror = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_cached = { version = "0.3.19", path = "../swc_cached" } @@ -26,7 +26,7 @@ swc_css_ast = { version = "0.140.21", path = "../swc_css_ast" } swc_css_visit = { version = "0.139.21", path = "../swc_css_visit" } [dev-dependencies] -serde_json = "1.0.115" +serde_json = { workspace = true } swc_css_parser = { version = "0.150.30", path = "../swc_css_parser" } testing = { version = "0.35.21", path = "../testing" } diff --git a/crates/swc_css_minifier/Cargo.toml b/crates/swc_css_minifier/Cargo.toml index 4d89ec112ed1..9387ff90febf 100644 --- a/crates/swc_css_minifier/Cargo.toml +++ b/crates/swc_css_minifier/Cargo.toml @@ -13,7 +13,7 @@ version = "0.116.33" bench = false [dependencies] -serde = "1.0.197" +serde = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -22,7 +22,7 @@ swc_css_utils = { version = "0.137.21", path = "../swc_css_utils/" } swc_css_visit = { version = "0.139.21", path = "../swc_css_visit" } [dev-dependencies] -criterion = "0.5" +criterion = { workspace = true } swc_css_codegen = { version = "0.151.31", path = "../swc_css_codegen" } swc_css_parser = { version = "0.150.30", path = "../swc_css_parser" } diff --git a/crates/swc_css_modules/Cargo.toml b/crates/swc_css_modules/Cargo.toml index 7d80c5c087a6..f2ed2bc79a60 100644 --- a/crates/swc_css_modules/Cargo.toml +++ b/crates/swc_css_modules/Cargo.toml @@ -15,8 +15,8 @@ bench = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rustc-hash = "1.1.0" -serde = { version = "1", features = ["derive"] } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"] } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -26,7 +26,7 @@ swc_css_parser = { version = "0.150.30", path = "../swc_css_parser" } swc_css_visit = { version = "0.139.21", path = "../swc_css_visit" } [dev-dependencies] -serde_json = "1" +serde_json = { workspace = true } swc_css_compat = { version = "0.27.32", path = "../swc_css_compat" } testing = { version = "0.35.21", path = "../testing" } diff --git a/crates/swc_css_parser/Cargo.toml b/crates/swc_css_parser/Cargo.toml index aab9915891ad..82eb5cab21bd 100644 --- a/crates/swc_css_parser/Cargo.toml +++ b/crates/swc_css_parser/Cargo.toml @@ -16,16 +16,16 @@ bench = false debug = [] [dependencies] -lexical = "6.1.0" -serde = "1.0.197" +lexical = { workspace = true } +serde = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } swc_css_ast = { version = "0.140.21", path = "../swc_css_ast" } [dev-dependencies] -criterion = "0.5" -serde_json = "1.0.115" +criterion = { workspace = true } +serde_json = { workspace = true } swc_css_ast = { version = "0.140.21", path = "../swc_css_ast", features = [ "serde-impl", diff --git a/crates/swc_css_prefixer/Cargo.toml b/crates/swc_css_prefixer/Cargo.toml index 08a35b68f2b7..face4c96eacd 100644 --- a/crates/swc_css_prefixer/Cargo.toml +++ b/crates/swc_css_prefixer/Cargo.toml @@ -13,9 +13,9 @@ version = "0.153.36" bench = false [dependencies] -once_cell = "1.19.0" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = "1.0.115" +once_cell = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } preset_env_base = { version = "0.4.11", path = "../preset_env_base" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } diff --git a/crates/swc_css_utils/Cargo.toml b/crates/swc_css_utils/Cargo.toml index 7d86a4facf39..ec5e0bea0e01 100644 --- a/crates/swc_css_utils/Cargo.toml +++ b/crates/swc_css_utils/Cargo.toml @@ -13,9 +13,9 @@ version = "0.137.22" bench = false [dependencies] -once_cell = "1.19.0" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = "1.0.115" +once_cell = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_css_visit/Cargo.toml b/crates/swc_css_visit/Cargo.toml index df6fc19320f0..35452dc33023 100644 --- a/crates/swc_css_visit/Cargo.toml +++ b/crates/swc_css_visit/Cargo.toml @@ -20,7 +20,7 @@ default = ["serde"] path = [] [dependencies] -serde = { version = "1", optional = true } +serde = { workspace = true, optional = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_ast/Cargo.toml b/crates/swc_ecma_ast/Cargo.toml index e35ccca87146..3ac0fccb7399 100644 --- a/crates/swc_ecma_ast/Cargo.toml +++ b/crates/swc_ecma_ast/Cargo.toml @@ -29,23 +29,23 @@ rkyv-impl = [ serde-impl = ["serde"] [dependencies] -arbitrary = { version = "1", optional = true, features = ["derive"] } -bitflags = "2.5.0" +arbitrary = { workspace = true, features = ["derive"], optional = true } +bitflags = { workspace = true } # bytecheck version should be in sync with rkyv version. Do not bump individually. -bytecheck = { version = "0.6.10", optional = true } -is-macro = "0.3.5" -num-bigint = { version = "0.4", features = ["serde"] } -phf = { version = "0.11.2", features = ["macros"] } -rkyv = { package = "rkyv", version = "=0.7.44", optional = true, features = [ +bytecheck = { workspace = true, optional = true } +is-macro = { workspace = true } +num-bigint = { workspace = true, features = ["serde"] } +phf = { workspace = true, features = ["macros"] } +rkyv = { workspace = true, features = [ "strict", "validation", -] } -scoped-tls = "1.0.1" -serde = { version = "1.0.197", features = ["derive"], optional = true } +], optional = true } +scoped-tls = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } string_enum = { version = "0.4.2", path = "../string_enum" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } -unicode-id-start = "1.1.2" +unicode-id-start = { workspace = true } [dev-dependencies] -serde_json = "1" +serde_json = { workspace = true } diff --git a/crates/swc_ecma_codegen/Cargo.toml b/crates/swc_ecma_codegen/Cargo.toml index e6a114e5f5e4..b348077a0e73 100644 --- a/crates/swc_ecma_codegen/Cargo.toml +++ b/crates/swc_ecma_codegen/Cargo.toml @@ -17,13 +17,13 @@ serde-impl = ["swc_ecma_ast/serde"] bench = false [dependencies] -memchr = "2.6.1" -num-bigint = { version = "0.4", features = ["serde"] } -once_cell = "1.19.0" -rustc-hash = "1.1.0" -serde = "1.0.197" -sourcemap = "8.0" -tracing = "0.1.40" +memchr = { workspace = true } +num-bigint = { workspace = true, features = ["serde"] } +once_cell = { workspace = true } +rustc-hash = { workspace = true } +serde = { workspace = true } +sourcemap = { workspace = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -31,9 +31,9 @@ swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast" } swc_ecma_codegen_macros = { version = "0.7.4", path = "../swc_ecma_codegen_macros" } [dev-dependencies] -base64 = "0.21" -criterion = "0.5" -serde_json = "1" +base64 = { workspace = true } +criterion = { workspace = true } +serde_json = { workspace = true } swc_common = { version = "0.33.20", path = "../swc_common", features = [ "sourcemap", diff --git a/crates/swc_ecma_codegen_macros/Cargo.toml b/crates/swc_ecma_codegen_macros/Cargo.toml index 1b4c59b50a4c..3972e24c120f 100644 --- a/crates/swc_ecma_codegen_macros/Cargo.toml +++ b/crates/swc_ecma_codegen_macros/Cargo.toml @@ -13,13 +13,13 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" +proc-macro2 = { workspace = true } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } - [dependencies.syn] - features = ["fold"] - version = "2" + [dependencies.syn] + features = ["fold"] + workspace = true - [dependencies.quote] - version = "1" + [dependencies.quote] + workspace = true diff --git a/crates/swc_ecma_compat_bugfixes/Cargo.toml b/crates/swc_ecma_compat_bugfixes/Cargo.toml index f0cad913b2f3..039be35b3366 100644 --- a/crates/swc_ecma_compat_bugfixes/Cargo.toml +++ b/crates/swc_ecma_compat_bugfixes/Cargo.toml @@ -19,7 +19,7 @@ swc_ecma_transforms_base = { version = "0.138.0", path = "../swc_ecma_transforms swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "0.1.3", path = "../swc_trace_macro" } -tracing = "0.1.40" +tracing = { workspace = true } [dev-dependencies] swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_compat_es2015/Cargo.toml b/crates/swc_ecma_compat_es2015/Cargo.toml index e4582d78b725..c5c10dc9ac65 100644 --- a/crates/swc_ecma_compat_es2015/Cargo.toml +++ b/crates/swc_ecma_compat_es2015/Cargo.toml @@ -13,12 +13,12 @@ version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -arrayvec = "0.7.4" -indexmap = "2.0.0" -is-macro = "0.3.5" -serde = "1.0.197" -serde_derive = "1.0.197" -smallvec = "1.8.0" +arrayvec = { workspace = true } +indexmap = { workspace = true } +is-macro = { workspace = true } +serde = { workspace = true } +serde_derive = { workspace = true } +smallvec = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } @@ -32,7 +32,7 @@ swc_ecma_transforms_macros = { version = "0.5.4", path = "../swc_ecma_transform swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "0.1.3", path = "../swc_trace_macro" } -tracing = "0.1.40" +tracing = { workspace = true } [dev-dependencies] swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_compat_es2016/Cargo.toml b/crates/swc_ecma_compat_es2016/Cargo.toml index 37e4c29e2d97..2b5e6544a5ee 100644 --- a/crates/swc_ecma_compat_es2016/Cargo.toml +++ b/crates/swc_ecma_compat_es2016/Cargo.toml @@ -21,7 +21,7 @@ swc_ecma_transforms_macros = { version = "0.5.4", path = "../swc_ecma_transforms swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "0.1.3", path = "../swc_trace_macro" } -tracing = "0.1.40" +tracing = { workspace = true } [dev-dependencies] swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_compat_es2017/Cargo.toml b/crates/swc_ecma_compat_es2017/Cargo.toml index e9ffbcbc6ae7..d74bb9047e39 100644 --- a/crates/swc_ecma_compat_es2017/Cargo.toml +++ b/crates/swc_ecma_compat_es2017/Cargo.toml @@ -13,8 +13,8 @@ version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde = { version = "1.0.197", features = ["derive"] } -tracing = "0.1.40" +serde = { workspace = true, features = ["derive"] } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_compat_es2018/Cargo.toml b/crates/swc_ecma_compat_es2018/Cargo.toml index 12351b7ea420..b29bd86a2f73 100644 --- a/crates/swc_ecma_compat_es2018/Cargo.toml +++ b/crates/swc_ecma_compat_es2018/Cargo.toml @@ -13,8 +13,8 @@ version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde = { version = "1.0.197", features = ["derive"] } -tracing = "0.1.40" +serde = { workspace = true, features = ["derive"] } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_compat_es2019/Cargo.toml b/crates/swc_ecma_compat_es2019/Cargo.toml index 8480e4f0de85..2c4c7e9e1147 100644 --- a/crates/swc_ecma_compat_es2019/Cargo.toml +++ b/crates/swc_ecma_compat_es2019/Cargo.toml @@ -13,7 +13,7 @@ version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tracing = "0.1.40" +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } diff --git a/crates/swc_ecma_compat_es2020/Cargo.toml b/crates/swc_ecma_compat_es2020/Cargo.toml index c5e5958650fd..64cdad1c2067 100644 --- a/crates/swc_ecma_compat_es2020/Cargo.toml +++ b/crates/swc_ecma_compat_es2020/Cargo.toml @@ -13,7 +13,7 @@ version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde = { version = "1.0.197", features = ["derive"] } +serde = { workspace = true, features = ["derive"] } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast" } @@ -22,7 +22,7 @@ swc_ecma_transforms_base = { version = "0.138.0", path = "../swc_ecma_transforms swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "0.1.3", path = "../swc_trace_macro" } -tracing = "0.1.40" +tracing = { workspace = true } [dev-dependencies] swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_compat_es2021/Cargo.toml b/crates/swc_ecma_compat_es2021/Cargo.toml index e98f251765c3..54b5aa612bfd 100644 --- a/crates/swc_ecma_compat_es2021/Cargo.toml +++ b/crates/swc_ecma_compat_es2021/Cargo.toml @@ -13,7 +13,7 @@ version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tracing = "0.1.40" +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_compat_es2022/Cargo.toml b/crates/swc_ecma_compat_es2022/Cargo.toml index fe6f97247682..6d138a070618 100644 --- a/crates/swc_ecma_compat_es2022/Cargo.toml +++ b/crates/swc_ecma_compat_es2022/Cargo.toml @@ -13,7 +13,7 @@ version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tracing = "0.1.40" +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } diff --git a/crates/swc_ecma_compat_es3/Cargo.toml b/crates/swc_ecma_compat_es3/Cargo.toml index b7f1bcaffa1f..70fe581d7b8e 100644 --- a/crates/swc_ecma_compat_es3/Cargo.toml +++ b/crates/swc_ecma_compat_es3/Cargo.toml @@ -13,7 +13,7 @@ version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tracing = "0.1.40" +tracing = { workspace = true } swc_common = { version = "0.33.20", path = "../swc_common" } swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast" } diff --git a/crates/swc_ecma_ext_transforms/Cargo.toml b/crates/swc_ecma_ext_transforms/Cargo.toml index d7dc2bbf99c7..11d3936d0fa7 100644 --- a/crates/swc_ecma_ext_transforms/Cargo.toml +++ b/crates/swc_ecma_ext_transforms/Cargo.toml @@ -12,7 +12,7 @@ version = "0.114.0" bench = false [dependencies] -phf = { version = "0.11", features = ["macros"] } +phf = { workspace = true, features = ["macros"] } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_lints/Cargo.toml b/crates/swc_ecma_lints/Cargo.toml index bf9a0615adff..b9dfbc547c0e 100644 --- a/crates/swc_ecma_lints/Cargo.toml +++ b/crates/swc_ecma_lints/Cargo.toml @@ -13,12 +13,12 @@ version = "0.93.0" bench = false [dependencies] -auto_impl = "1.2.0" -dashmap = "5.5.3" -parking_lot = "0.12.1" -rayon = "1.7.0" -regex = "1" -serde = { version = "1.0.197", features = ["derive"] } +auto_impl = { workspace = true } +dashmap = { workspace = true } +parking_lot = { workspace = true } +rayon = { workspace = true } +regex = { workspace = true } +serde = { workspace = true, features = ["derive"] } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common", features = [ diff --git a/crates/swc_ecma_loader/Cargo.toml b/crates/swc_ecma_loader/Cargo.toml index 31d50347dbb5..509bb8117630 100644 --- a/crates/swc_ecma_loader/Cargo.toml +++ b/crates/swc_ecma_loader/Cargo.toml @@ -25,23 +25,23 @@ node = ["normpath", "serde_json", "dashmap", "once_cell", "path-clean"] tsc = ["dashmap", "once_cell", "swc_cached"] [dependencies] -anyhow = "1.0.81" -dashmap = { version = "5.5.3", optional = true } -lru = { version = "0.10.0", optional = true } -once_cell = { version = "1.19.0", optional = true } -parking_lot = { version = "0.12.1", optional = true } +anyhow = { workspace = true } +dashmap = { workspace = true, optional = true } +lru = { workspace = true, optional = true } +once_cell = { workspace = true, optional = true } +parking_lot = { workspace = true, optional = true } path-clean = { version = "=0.1.0", optional = true } -pathdiff = "0.2.1" -serde = { version = "1", features = ["derive"] } -serde_json = { version = "1.0.115", optional = true } -tracing = "0.1.40" +pathdiff = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true, optional = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_cached = { version = "0.3.19", optional = true, path = "../swc_cached" } swc_common = { version = "0.33.20", path = "../swc_common" } [dev-dependencies] -lazy_static = "1.4.0" +lazy_static = { workspace = true } [target.'cfg(windows)'.dependencies] normpath = { version = "0.2", optional = true } diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index 6b072c233a3e..913dd9a2e7cd 100644 --- a/crates/swc_ecma_minifier/Cargo.toml +++ b/crates/swc_ecma_minifier/Cargo.toml @@ -33,22 +33,22 @@ serde-impl = [] trace-ast = [] [dependencies] -arrayvec = "0.7.2" -backtrace = { version = "0.3.61", optional = true } -indexmap = "2.0.0" -num-bigint = "0.4.3" -num_cpus = "1.13.1" -once_cell = "1.19.0" -parking_lot = "0.12.1" -pretty_assertions = { version = "1.3", optional = true } +arrayvec = { workspace = true } +backtrace = { workspace = true, optional = true } +indexmap = { workspace = true } +num-bigint = { workspace = true } +num_cpus = { workspace = true } +once_cell = { workspace = true } +parking_lot = { workspace = true } +pretty_assertions = { workspace = true, optional = true } radix_fmt = "=1.0.0" -rayon = { version = "1.7.0", optional = true } -regex = "1.5.3" -rustc-hash = "1.1.0" -ryu-js = "1.0.0" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = "1.0.115" -tracing = "0.1.40" +rayon = { workspace = true, optional = true } +regex = { workspace = true } +rustc-hash = { workspace = true } +ryu-js = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -68,11 +68,11 @@ swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } swc_timer = { version = "0.21.21", path = "../swc_timer" } [dev-dependencies] -ansi_term = "0.12.1" -anyhow = "1" -criterion = "0.5.1" -pretty_assertions = "1.3" -walkdir = "2" +ansi_term = { workspace = true } +anyhow = { workspace = true } +criterion = { workspace = true } +pretty_assertions = { workspace = true } +walkdir = { workspace = true } swc_ecma_testing = { version = "0.22.22", path = "../swc_ecma_testing" } swc_malloc = { version = "0.5.10", path = "../swc_malloc" } diff --git a/crates/swc_ecma_parser/Cargo.toml b/crates/swc_ecma_parser/Cargo.toml index cbc4e961dc31..d5e9b7f43fb8 100644 --- a/crates/swc_ecma_parser/Cargo.toml +++ b/crates/swc_ecma_parser/Cargo.toml @@ -24,17 +24,17 @@ typescript = [] verify = ["swc_ecma_visit"] [dependencies] -either = { version = "1.10" } -num-bigint = "0.4" -num-traits = "0.2.15" -serde = { version = "1", features = ["derive"] } -smallvec = "1.8.0" -smartstring = "1" -tracing = "0.1.40" -typed-arena = "2.0.1" +either = { workspace = true } +num-bigint = { workspace = true } +num-traits = { workspace = true } +serde = { workspace = true, features = ["derive"] } +smallvec = { workspace = true } +smartstring = { workspace = true } +tracing = { workspace = true } +typed-arena = { workspace = true } -new_debug_unreachable = "1.0.4" -phf = { version = "0.11.2", features = ["macros"] } +new_debug_unreachable = { workspace = true } +phf = { workspace = true, features = ["macros"] } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast" } @@ -44,10 +44,10 @@ swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit", option stacker = { version = "0.1.15", optional = true } [dev-dependencies] -criterion = "0.5" -pretty_assertions = "1.3" -serde_json = "1" -walkdir = "2" +criterion = { workspace = true } +pretty_assertions = { workspace = true } +serde_json = { workspace = true } +walkdir = { workspace = true } swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast", features = [ "serde-impl", diff --git a/crates/swc_ecma_preset_env/Cargo.toml b/crates/swc_ecma_preset_env/Cargo.toml index 982e89120d7d..a95f1614a191 100644 --- a/crates/swc_ecma_preset_env/Cargo.toml +++ b/crates/swc_ecma_preset_env/Cargo.toml @@ -17,17 +17,17 @@ default = ["serde-impl"] serde-impl = ["serde"] [dependencies] -anyhow = "1" -dashmap = "5.5.3" -indexmap = "2.0.0" -once_cell = "1.19.0" -semver = { version = "1.0.17", features = ["serde"] } -serde = { version = "1", features = ["derive"], optional = true } -serde_json = "1" -st-map = "0.2.0" +anyhow = { workspace = true } +dashmap = { workspace = true } +indexmap = { workspace = true } +once_cell = { workspace = true } +semver = { workspace = true, features = ["serde"] } +serde = { workspace = true, features = ["derive"], optional = true } +serde_json = { workspace = true } +st-map = { workspace = true } preset_env_base = { version = "0.4.11", path = "../preset_env_base" } -rustc-hash = "1.1.0" +rustc-hash = { workspace = true } string_enum = { version = "0.4.2", path = "../string_enum" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -40,8 +40,8 @@ swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } [dev-dependencies] -criterion = "0.5" -pretty_assertions = "1.3" +criterion = { workspace = true } +pretty_assertions = { workspace = true } swc_ecma_codegen = { version = "0.149.0", path = "../swc_ecma_codegen" } swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_quote_macros/Cargo.toml b/crates/swc_ecma_quote_macros/Cargo.toml index 6125ee9ba755..83776aec1d70 100644 --- a/crates/swc_ecma_quote_macros/Cargo.toml +++ b/crates/swc_ecma_quote_macros/Cargo.toml @@ -13,10 +13,10 @@ bench = false proc-macro = true [dependencies] -anyhow = "1" -proc-macro2 = "1" -quote = "1" -syn = "2" +anyhow = { workspace = true } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_testing/Cargo.toml b/crates/swc_ecma_testing/Cargo.toml index 7bca189ad0b2..61c97f26b366 100644 --- a/crates/swc_ecma_testing/Cargo.toml +++ b/crates/swc_ecma_testing/Cargo.toml @@ -12,9 +12,9 @@ version = "0.22.22" bench = false [dependencies] -anyhow = "1" -hex = "0.4" -sha2 = "0.10" -tracing = "0.1.40" +anyhow = { workspace = true } +hex = { workspace = true } +sha2 = { workspace = true } +tracing = { workspace = true } testing = { version = "0.35.21", path = "../testing" } diff --git a/crates/swc_ecma_transforms/Cargo.toml b/crates/swc_ecma_transforms/Cargo.toml index 1534fd1c4273..c9b345649630 100644 --- a/crates/swc_ecma_transforms/Cargo.toml +++ b/crates/swc_ecma_transforms/Cargo.toml @@ -45,9 +45,9 @@ swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_ut swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } [dev-dependencies] -pretty_assertions = "1.3" -sourcemap = "8.0" -tempfile = "3" +pretty_assertions = { workspace = true } +sourcemap = { workspace = true } +tempfile = { workspace = true } swc_ecma_codegen = { version = "0.149.0", path = "../swc_ecma_codegen" } swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_transforms_base/Cargo.toml b/crates/swc_ecma_transforms_base/Cargo.toml index 9d66806789ca..50b519e66719 100644 --- a/crates/swc_ecma_transforms_base/Cargo.toml +++ b/crates/swc_ecma_transforms_base/Cargo.toml @@ -18,15 +18,15 @@ concurrent-renamer = ["rayon"] [dependencies] better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" } -bitflags = "2.5.0" -indexmap = "2.0.0" -once_cell = "1.19.0" -phf = { version = "0.11", features = ["macros"] } -rayon = { version = "1", optional = true } -rustc-hash = "1.1.0" -serde = { version = "1", features = ["derive"] } -smallvec = "1.8.0" -tracing = "0.1.40" +bitflags = { workspace = true } +indexmap = { workspace = true } +once_cell = { workspace = true } +phf = { workspace = true, features = ["macros"] } +rayon = { workspace = true, optional = true } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"] } +smallvec = { workspace = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -36,8 +36,8 @@ swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } [dev-dependencies] -criterion = "0.5" -rayon = "1" +criterion = { workspace = true } +rayon = { workspace = true } swc_ecma_codegen = { version = "0.149.0", path = "../swc_ecma_codegen" } swc_ecma_transforms_macros = { version = "0.5.4", path = "../swc_ecma_transforms_macros" } diff --git a/crates/swc_ecma_transforms_compat/Cargo.toml b/crates/swc_ecma_transforms_compat/Cargo.toml index 18ba8cd543f8..ba6b5787b582 100644 --- a/crates/swc_ecma_transforms_compat/Cargo.toml +++ b/crates/swc_ecma_transforms_compat/Cargo.toml @@ -20,14 +20,14 @@ concurrent = [ ] [dependencies] -arrayvec = "0.7.2" -indexmap = "2.0.0" -is-macro = "0.3.5" -num-bigint = "0.4" -rayon = { version = "1.7.0", optional = true } -serde = { version = "1.0.197", features = ["derive"] } -smallvec = "1.8.0" -tracing = "0.1.40" +arrayvec = { workspace = true } +indexmap = { workspace = true } +is-macro = { workspace = true } +num-bigint = { workspace = true } +rayon = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"] } +smallvec = { workspace = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -52,7 +52,7 @@ swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "0.1.3", path = "../swc_trace_macro" } [dev-dependencies] -serde_json = "1.0.115" +serde_json = { workspace = true } swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } swc_ecma_transforms_testing = { version = "0.141.0", path = "../swc_ecma_transforms_testing" } diff --git a/crates/swc_ecma_transforms_macros/Cargo.toml b/crates/swc_ecma_transforms_macros/Cargo.toml index 3a53a9701ca2..6a2840b942c9 100644 --- a/crates/swc_ecma_transforms_macros/Cargo.toml +++ b/crates/swc_ecma_transforms_macros/Cargo.toml @@ -13,8 +13,8 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" -syn = { version = "2", features = ["fold", "parsing", "full"] } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["fold", "parsing", "full"] } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } diff --git a/crates/swc_ecma_transforms_module/Cargo.toml b/crates/swc_ecma_transforms_module/Cargo.toml index 5c894043e96d..1f2613ca53f6 100644 --- a/crates/swc_ecma_transforms_module/Cargo.toml +++ b/crates/swc_ecma_transforms_module/Cargo.toml @@ -13,16 +13,16 @@ version = "0.181.0" bench = false [dependencies] -Inflector = "0.11.4" -anyhow = "1.0.81" -bitflags = "2.5.0" -indexmap = "2.0.0" -is-macro = "0.3.5" +Inflector = { workspace = true } +anyhow = { workspace = true } +bitflags = { workspace = true } +indexmap = { workspace = true } +is-macro = { workspace = true } path-clean = "0.1.0" -pathdiff = "0.2.0" -regex = "1" -serde = { version = "1.0.197", features = ["derive"] } -tracing = "0.1.40" +pathdiff = { workspace = true } +regex = { workspace = true } +serde = { workspace = true, features = ["derive"] } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_cached = { version = "0.3.19", path = "../swc_cached" } @@ -37,8 +37,8 @@ swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } [dev-dependencies] -indexmap = { version = "2.0.0", features = ["serde"] } -serde_json = "1" +indexmap = { workspace = true, features = ["serde"] } +serde_json = { workspace = true } swc_ecma_loader = { version = "0.45.23", path = "../swc_ecma_loader", features = [ "node", diff --git a/crates/swc_ecma_transforms_optimization/Cargo.toml b/crates/swc_ecma_transforms_optimization/Cargo.toml index c3acd2f4e35a..cd5d684367fb 100644 --- a/crates/swc_ecma_transforms_optimization/Cargo.toml +++ b/crates/swc_ecma_transforms_optimization/Cargo.toml @@ -22,14 +22,14 @@ concurrent = [ debug = [] [dependencies] -dashmap = "5.5.3" -indexmap = "2.0.0" -once_cell = "1.19.0" -petgraph = "0.6" -rayon = { version = "1.7.0", optional = true } -rustc-hash = "1.1.0" -serde_json = "1.0.115" -tracing = "0.1.40" +dashmap = { workspace = true } +indexmap = { workspace = true } +once_cell = { workspace = true } +petgraph = { workspace = true } +rayon = { workspace = true, optional = true } +rustc-hash = { workspace = true } +serde_json = { workspace = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_transforms_proposal/Cargo.toml b/crates/swc_ecma_transforms_proposal/Cargo.toml index 91aa6af06a0d..e2e0145aa541 100644 --- a/crates/swc_ecma_transforms_proposal/Cargo.toml +++ b/crates/swc_ecma_transforms_proposal/Cargo.toml @@ -17,10 +17,10 @@ default = [] multi-module = ["swc_ecma_loader"] [dependencies] -either = "1.10.0" -rustc-hash = "1" -serde = { version = "1.0.197", features = ["derive"] } -smallvec = "1.8.0" +either = { workspace = true } +rustc-hash = { workspace = true } +serde = { workspace = true, features = ["derive"] } +smallvec = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } @@ -33,7 +33,7 @@ swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } [dev-dependencies] -serde_json = "1.0.115" +serde_json = { workspace = true } swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } swc_ecma_transforms_compat = { version = "0.164.0", path = "../swc_ecma_transforms_compat" } diff --git a/crates/swc_ecma_transforms_react/Cargo.toml b/crates/swc_ecma_transforms_react/Cargo.toml index 469b45229dd6..5ee1ed68ed46 100644 --- a/crates/swc_ecma_transforms_react/Cargo.toml +++ b/crates/swc_ecma_transforms_react/Cargo.toml @@ -18,12 +18,12 @@ default = ["serde-impl"] serde-impl = ["serde"] [dependencies] -base64 = "0.21.0" -dashmap = "5.5.3" -indexmap = "2.0.0" -once_cell = "1.19.0" -rayon = { version = "1.7.0", optional = true } -serde = { version = "1.0.197", features = ["derive"], optional = true } +base64 = { workspace = true } +dashmap = { workspace = true } +indexmap = { workspace = true } +once_cell = { workspace = true } +rayon = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } sha-1 = "=0.10.0" string_enum = { version = "0.4.2", path = "../string_enum" } diff --git a/crates/swc_ecma_transforms_testing/Cargo.toml b/crates/swc_ecma_transforms_testing/Cargo.toml index 338a5acd7891..e06f3c0c64d1 100644 --- a/crates/swc_ecma_transforms_testing/Cargo.toml +++ b/crates/swc_ecma_transforms_testing/Cargo.toml @@ -12,15 +12,15 @@ version = "0.141.0" bench = false [dependencies] -ansi_term = "0.12.1" -anyhow = "1" -base64 = "0.21" -hex = "0.4.3" -serde = "1" -serde_json = "1" -sha2 = "0.10.8" -sourcemap = "8.0" -tempfile = "3.6.0" +ansi_term = { workspace = true } +anyhow = { workspace = true } +base64 = { workspace = true } +hex = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +sha2 = { workspace = true } +sourcemap = { workspace = true } +tempfile = { workspace = true } swc_common = { version = "0.33.20", path = "../swc_common", features = [ "sourcemap", diff --git a/crates/swc_ecma_transforms_typescript/Cargo.toml b/crates/swc_ecma_transforms_typescript/Cargo.toml index 3792ba9dfa7f..6eaab075dfe6 100644 --- a/crates/swc_ecma_transforms_typescript/Cargo.toml +++ b/crates/swc_ecma_transforms_typescript/Cargo.toml @@ -13,9 +13,9 @@ version = "0.189.0" bench = false [dependencies] -serde = { version = "1.0.197", features = ["derive"] } +serde = { workspace = true, features = ["derive"] } -ryu-js = "1.0.0" +ryu-js = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast" } @@ -25,7 +25,7 @@ swc_ecma_utils = { version = "0.128.0", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } [dev-dependencies] -criterion = "0.5" +criterion = { workspace = true } swc_ecma_codegen = { version = "0.149.0", path = "../swc_ecma_codegen" } swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_usage_analyzer/Cargo.toml b/crates/swc_ecma_usage_analyzer/Cargo.toml index 0d7e9410fb2a..58b45659a4a5 100644 --- a/crates/swc_ecma_usage_analyzer/Cargo.toml +++ b/crates/swc_ecma_usage_analyzer/Cargo.toml @@ -22,9 +22,9 @@ concurrent = ["swc_common/concurrent", "indexmap/rayon"] trace-ast = [] [dependencies] -indexmap = "2.0.0" -rustc-hash = "1.1.0" -tracing = "0.1.40" +indexmap = { workspace = true } +rustc-hash = { workspace = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_utils/Cargo.toml b/crates/swc_ecma_utils/Cargo.toml index a34bd3bb77ac..d46aa08191c7 100644 --- a/crates/swc_ecma_utils/Cargo.toml +++ b/crates/swc_ecma_utils/Cargo.toml @@ -20,13 +20,13 @@ bench = false concurrent = ["swc_common/concurrent", "rayon"] [dependencies] -indexmap = "2.0.0" -num_cpus = "1.13.1" -once_cell = "1.19.0" -rayon = { version = "1.7.0", optional = true } -rustc-hash = "1.1.0" -tracing = "0.1.40" -unicode-id = "0.3" +indexmap = { workspace = true } +num_cpus = { workspace = true } +once_cell = { workspace = true } +rayon = { workspace = true, optional = true } +rustc-hash = { workspace = true } +tracing = { workspace = true } +unicode-id = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_ecma_visit/Cargo.toml b/crates/swc_ecma_visit/Cargo.toml index b21c9d3644b7..980fbc194420 100644 --- a/crates/swc_ecma_visit/Cargo.toml +++ b/crates/swc_ecma_visit/Cargo.toml @@ -21,9 +21,9 @@ default = [] path = [] [dependencies] -num-bigint = { version = "0.4", features = ["serde"] } -serde = { version = "1", optional = true } -tracing = "0.1.40" +num-bigint = { workspace = true, features = ["serde"] } +serde = { workspace = true, optional = true } +tracing = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_eq_ignore_macros/Cargo.toml b/crates/swc_eq_ignore_macros/Cargo.toml index 22df0fdd8ffa..20cc64c01041 100644 --- a/crates/swc_eq_ignore_macros/Cargo.toml +++ b/crates/swc_eq_ignore_macros/Cargo.toml @@ -13,6 +13,6 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1.0.24" -quote = "1.0.7" -syn = { version = "2", features = ["full"] } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["full"] } diff --git a/crates/swc_error_reporters/Cargo.toml b/crates/swc_error_reporters/Cargo.toml index 29c47aad6fee..d3670d338b66 100644 --- a/crates/swc_error_reporters/Cargo.toml +++ b/crates/swc_error_reporters/Cargo.toml @@ -12,10 +12,10 @@ version = "0.17.19" bench = false [dependencies] -anyhow = "1" -miette = { version = "4.2.1", features = ["fancy"] } -once_cell = "1" -parking_lot = "0.12.1" +anyhow = { workspace = true } +miette = { workspace = true, features = ["fancy"] } +once_cell = { workspace = true } +parking_lot = { workspace = true } swc_common = { version = "0.33.20", path = "../swc_common", features = [ "concurrent", diff --git a/crates/swc_estree_ast/Cargo.toml b/crates/swc_estree_ast/Cargo.toml index 451bbfb1778f..67fced6db8fa 100644 --- a/crates/swc_estree_ast/Cargo.toml +++ b/crates/swc_estree_ast/Cargo.toml @@ -22,8 +22,8 @@ default = ["serde-impl"] serde-impl = ["serde"] [dependencies] -serde = { version = "1", features = ["derive"], optional = true } -serde_json = "1" +serde = { workspace = true, features = ["derive"], optional = true } +serde_json = { workspace = true } better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 0b65716b4630..79ceab4415a9 100644 --- a/crates/swc_estree_compat/Cargo.toml +++ b/crates/swc_estree_compat/Cargo.toml @@ -16,12 +16,12 @@ version = "0.199.0" bench = false [dependencies] -ahash = { version = "0.8.8", features = ["compile-time-rng"] } -anyhow = "1" -copyless = "0.1.5" -rayon = "1.7.0" -serde = { version = "1", features = ["derive"] } -serde_json = "1.0.115" +ahash = { workspace = true, features = ["compile-time-rng"] } +anyhow = { workspace = true } +copyless = { workspace = true } +rayon = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common", features = [ @@ -37,15 +37,15 @@ swc_estree_ast = { version = "0.23.19", path = "../swc_estree_ast" } swc_node_comments = { version = "0.20.19", path = "../swc_node_comments/" } [dev-dependencies] -criterion = "0.5" -pretty_assertions = "1.3" +criterion = { workspace = true } +pretty_assertions = { workspace = true } swc = { version = "0.274.0", path = "../swc" } swc_ecma_ast = { version = "0.113.0", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.230.0", path = "../swc_ecma_transforms/" } testing = { version = "0.35.21", path = "../testing" } -walkdir = "2" +walkdir = { workspace = true } [[bench]] harness = false diff --git a/crates/swc_fast_graph/Cargo.toml b/crates/swc_fast_graph/Cargo.toml index aa2779989754..94671f5148a1 100644 --- a/crates/swc_fast_graph/Cargo.toml +++ b/crates/swc_fast_graph/Cargo.toml @@ -12,8 +12,8 @@ version = "0.21.21" bench = false [dependencies] -indexmap = "2.0.0" -petgraph = "0.6" -rustc-hash = "1.1.0" +indexmap = { workspace = true } +petgraph = { workspace = true } +rustc-hash = { workspace = true } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_graph_analyzer/Cargo.toml b/crates/swc_graph_analyzer/Cargo.toml index 3a59f47c2c50..5d0cd95d6465 100644 --- a/crates/swc_graph_analyzer/Cargo.toml +++ b/crates/swc_graph_analyzer/Cargo.toml @@ -12,11 +12,11 @@ version = "0.22.22" bench = false [dependencies] -auto_impl = "1.2.0" -petgraph = "0.6.0" +auto_impl = { workspace = true } +petgraph = { workspace = true } swc_common = { version = "0.33.20", path = "../swc_common/" } swc_fast_graph = { version = "0.21.20", path = "../swc_fast_graph/" } -tracing = "0.1.40" +tracing = { workspace = true } [dev-dependencies] testing = { version = "0.35.21", path = "../testing" } diff --git a/crates/swc_html_ast/Cargo.toml b/crates/swc_html_ast/Cargo.toml index 1f98084e4ada..cfa4999de135 100644 --- a/crates/swc_html_ast/Cargo.toml +++ b/crates/swc_html_ast/Cargo.toml @@ -20,12 +20,12 @@ rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"] serde-impl = ["serde"] [dependencies] -is-macro = "0.3.5" -rkyv = { version = "=0.7.44", optional = true, features = [ +is-macro = { workspace = true } +rkyv = { workspace = true, features = [ "strict", "validation", -] } -serde = { version = "1.0.197", features = ["derive"], optional = true } +], optional = true } +serde = { workspace = true, features = ["derive"], optional = true } string_enum = { version = "0.4.2", path = "../string_enum/" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } diff --git a/crates/swc_html_codegen/Cargo.toml b/crates/swc_html_codegen/Cargo.toml index 30110baf665e..af9dfaaad457 100644 --- a/crates/swc_html_codegen/Cargo.toml +++ b/crates/swc_html_codegen/Cargo.toml @@ -16,9 +16,9 @@ version = "0.42.27" bench = false [dependencies] -auto_impl = "1.2.0" -bitflags = "2.5.0" -rustc-hash = "1.1.0" +auto_impl = { workspace = true } +bitflags = { workspace = true } +rustc-hash = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_html_codegen_macros/Cargo.toml b/crates/swc_html_codegen_macros/Cargo.toml index 30ced539ae7e..df9135222ae2 100644 --- a/crates/swc_html_codegen_macros/Cargo.toml +++ b/crates/swc_html_codegen_macros/Cargo.toml @@ -16,8 +16,8 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" -syn = { version = "2", features = ["fold"] } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["fold"] } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index db0d51075428..81dc25226523 100644 --- a/crates/swc_html_minifier/Cargo.toml +++ b/crates/swc_html_minifier/Cargo.toml @@ -16,9 +16,9 @@ version = "0.135.0" bench = false [dependencies] -once_cell = "1.19.0" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = "1.0.115" +once_cell = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_cached = { version = "0.3.19", path = "../swc_cached" } @@ -44,7 +44,7 @@ swc_html_utils = { version = "0.18.19", path = "../swc_html_utils" } swc_html_visit = { version = "0.33.19", path = "../swc_html_visit" } [dev-dependencies] -criterion = "0.5" +criterion = { workspace = true } swc_malloc = { version = "0.5.10", path = "../swc_malloc" } testing = { version = "0.35.21", path = "../testing" } diff --git a/crates/swc_html_parser/Cargo.toml b/crates/swc_html_parser/Cargo.toml index 993be377b13e..5eb0a04b90fa 100644 --- a/crates/swc_html_parser/Cargo.toml +++ b/crates/swc_html_parser/Cargo.toml @@ -25,9 +25,9 @@ swc_html_ast = { version = "0.33.19", path = "../swc_html_ast" } swc_html_utils = { version = "0.18.19", path = "../swc_html_utils" } [dev-dependencies] -criterion = "0.5" -serde = "1.0.197" -serde_json = "1.0.115" +criterion = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } swc_html_ast = { version = "0.33.19", path = "../swc_html_ast", features = [ "serde-impl", diff --git a/crates/swc_html_utils/Cargo.toml b/crates/swc_html_utils/Cargo.toml index 30e73b50d462..bde8539cc2dd 100644 --- a/crates/swc_html_utils/Cargo.toml +++ b/crates/swc_html_utils/Cargo.toml @@ -16,9 +16,9 @@ version = "0.18.20" bench = false [dependencies] -once_cell = "1.19.0" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = "1.0.115" +once_cell = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_html_visit/Cargo.toml b/crates/swc_html_visit/Cargo.toml index 3bd78588d988..ccc4e2ca8cca 100644 --- a/crates/swc_html_visit/Cargo.toml +++ b/crates/swc_html_visit/Cargo.toml @@ -23,7 +23,7 @@ default = ["serde"] path = [] [dependencies] -serde = { version = "1", optional = true } +serde = { workspace = true, optional = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_macros_common/Cargo.toml b/crates/swc_macros_common/Cargo.toml index 5b792182cbef..2881ddc59894 100644 --- a/crates/swc_macros_common/Cargo.toml +++ b/crates/swc_macros_common/Cargo.toml @@ -12,16 +12,9 @@ version = "0.3.10" bench = false [dependencies] -proc-macro2 = "1" -quote = "1" +proc-macro2 = { workspace = true } +quote = { workspace = true } - [dependencies.syn] - features = [ - "derive", - "visit", - "parsing", - "full", - "printing", - "extra-traits", - ] - version = "2" + [dependencies.syn] + features = ["derive", "visit", "parsing", "full", "printing", "extra-traits"] + workspace = true diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index f09edb7c99a0..7407d4cfc06e 100644 --- a/crates/swc_node_bundler/Cargo.toml +++ b/crates/swc_node_bundler/Cargo.toml @@ -19,14 +19,14 @@ swc_v1 = ["serde-impl"] swc_v2 = ["serde-impl"] [dependencies] -anyhow = "1" -dashmap = "5.5.3" -is-macro = "0.3.5" -once_cell = "1.19.0" -regex = "1" -serde = { version = "1", features = ["derive"], optional = true } -serde_json = "1" -tracing = "0.1.40" +anyhow = { workspace = true } +dashmap = { workspace = true } +is-macro = { workspace = true } +once_cell = { workspace = true } +regex = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } +serde_json = { workspace = true } +tracing = { workspace = true } string_enum = { version = "0.4.2", path = "../string_enum" } swc = { version = "0.274.0", path = "../swc" } @@ -47,6 +47,6 @@ swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } swc_malloc = { version = "0.5.10", path = "../swc_malloc" } [dev-dependencies] -pretty_assertions = "1.3" +pretty_assertions = { workspace = true } testing = { version = "0.35.21", path = "../testing" } diff --git a/crates/swc_node_comments/Cargo.toml b/crates/swc_node_comments/Cargo.toml index 44c64331cc91..ae9303c50787 100644 --- a/crates/swc_node_comments/Cargo.toml +++ b/crates/swc_node_comments/Cargo.toml @@ -15,7 +15,7 @@ version = "0.20.19" bench = false [dependencies] -dashmap = "5.5.3" +dashmap = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_nodejs_common/Cargo.toml b/crates/swc_nodejs_common/Cargo.toml index 2dd0f05ce162..6d1a7e9a7889 100644 --- a/crates/swc_nodejs_common/Cargo.toml +++ b/crates/swc_nodejs_common/Cargo.toml @@ -12,12 +12,9 @@ version = "0.0.8" bench = false [dependencies] -anyhow = "1" -napi = { version = "2", default-features = false, features = [ - "napi3", - "serde-json", -] } -serde = { version = "1", features = ["derive"] } -serde_json = { version = "1", features = ["unbounded_depth"] } -tracing = { version = "0.1.40" } -tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } +anyhow = { workspace = true } +napi = { workspace = true, features = ["napi3", "serde-json"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true, features = ["unbounded_depth"] } +tracing = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter"] } diff --git a/crates/swc_plugin/Cargo.toml b/crates/swc_plugin/Cargo.toml index 69255ec49171..4298356fe3b1 100644 --- a/crates/swc_plugin/Cargo.toml +++ b/crates/swc_plugin/Cargo.toml @@ -16,4 +16,4 @@ version = "0.90.1" bench = false [dependencies] -once_cell = "1.19.0" +once_cell = { workspace = true } diff --git a/crates/swc_plugin_macro/Cargo.toml b/crates/swc_plugin_macro/Cargo.toml index d6526a1e8675..5fce38b0b03c 100644 --- a/crates/swc_plugin_macro/Cargo.toml +++ b/crates/swc_plugin_macro/Cargo.toml @@ -13,6 +13,6 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" -syn = { version = "2", features = ["full"] } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["full"] } diff --git a/crates/swc_plugin_proxy/Cargo.toml b/crates/swc_plugin_proxy/Cargo.toml index ca067f18e926..3bf6e4c47537 100644 --- a/crates/swc_plugin_proxy/Cargo.toml +++ b/crates/swc_plugin_proxy/Cargo.toml @@ -22,11 +22,11 @@ plugin-rt = ["__plugin_rt", "swc_common/plugin-base", "rkyv-impl"] [dependencies] -rkyv = { package = "rkyv", version = "=0.7.44", optional = true, features = [ +rkyv = { workspace = true, features = [ "strict", "validation", -] } -tracing = "0.1.40" +], optional = true } +tracing = { workspace = true } better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml index ba5e855b5bc5..db1118f14d3d 100644 --- a/crates/swc_plugin_runner/Cargo.toml +++ b/crates/swc_plugin_runner/Cargo.toml @@ -46,18 +46,18 @@ __rkyv = [] rkyv-impl = ["__rkyv", "swc_common/plugin-rt", "swc_plugin_proxy/plugin-rt"] [dependencies] -anyhow = "1.0.81" -enumset = "1.1.2" -futures = { version = "0.3" } -once_cell = "1.19.0" -parking_lot = "0.12.1" -serde = { version = "1.0.197", features = ["derive"] } -serde_json = "1.0.115" -tokio = { version = "1", default-features = false, optional = true } -tracing = "0.1.40" -virtual-fs = { version = "=0.11.1", default-features = false } -wasmer = { version = "4.2.5", default-features = false } -wasmer-wasix = { version = "0.18.0", default-features = false } +anyhow = { workspace = true } +enumset = { workspace = true } +futures = { workspace = true } +once_cell = { workspace = true } +parking_lot = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tokio = { workspace = true, optional = true } +tracing = { workspace = true } +virtual-fs = { workspace = true } +wasmer = { workspace = true } +wasmer-wasix = { workspace = true } swc_common = { version = "0.33.20", path = "../swc_common", features = [ "concurrent", @@ -71,7 +71,7 @@ wasmer-cache = { version = "4.0.0", optional = true } wasmer-compiler-cranelift = { version = "4.0.0", default-features = false } [dev-dependencies] -criterion = "0.5" +criterion = { workspace = true } swc_atoms = { version = "0.6.5", path = '../swc_atoms' } swc_css_ast = { version = "0.140.21", path = "../swc_css_ast", features = [ @@ -86,7 +86,7 @@ swc_ecma_parser = { version = "0.144.0", path = "../swc_ecma_parser" } swc_ecma_visit = { version = "0.99.0", path = "../swc_ecma_visit" } swc_malloc = { version = "0.5.10", path = "../swc_malloc" } testing = { version = "0.35.21", path = "../testing" } -tokio = { version = "1", features = ["rt"] } +tokio = { workspace = true, features = ["rt"] } [[bench]] harness = false diff --git a/crates/swc_timer/Cargo.toml b/crates/swc_timer/Cargo.toml index 14b9b6f18774..d086acb0b671 100644 --- a/crates/swc_timer/Cargo.toml +++ b/crates/swc_timer/Cargo.toml @@ -12,7 +12,7 @@ version = "0.21.21" bench = false [dependencies] -tracing = "0.1.40" +tracing = { workspace = true } [dev-dependencies] testing = { version = "0.35.21", path = "../testing" } diff --git a/crates/swc_trace_macro/Cargo.toml b/crates/swc_trace_macro/Cargo.toml index 1914c851674c..7514167382bb 100644 --- a/crates/swc_trace_macro/Cargo.toml +++ b/crates/swc_trace_macro/Cargo.toml @@ -1,18 +1,18 @@ [package] -authors = ["강동윤 "] -description = "Proc macro for performance trace of swc" +authors = ["강동윤 "] +description = "Proc macro for performance trace of swc" documentation = "https://rustdoc.swc.rs/swc_trace_macro/" -edition = "2021" -license = "Apache-2.0" -name = "swc_trace_macro" -repository = "https://github.com/swc-project/swc.git" -version = "0.1.3" +edition = "2021" +license = "Apache-2.0" +name = "swc_trace_macro" +repository = "https://github.com/swc-project/swc.git" +version = "0.1.3" [lib] -bench = false +bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" -syn = {version = "2", features = ["full"]} +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["full"] } diff --git a/crates/swc_visit/Cargo.toml b/crates/swc_visit/Cargo.toml index 1f676b56da62..97f4433d7954 100644 --- a/crates/swc_visit/Cargo.toml +++ b/crates/swc_visit/Cargo.toml @@ -14,6 +14,6 @@ bench = false path = [] [dependencies] -either = "1.10.0" +either = { workspace = true } swc_visit_macros = { version = "0.5.11", path = "../swc_visit_macros" } diff --git a/crates/swc_visit_macros/Cargo.toml b/crates/swc_visit_macros/Cargo.toml index b5d10eacaa2d..419b775571cc 100644 --- a/crates/swc_visit_macros/Cargo.toml +++ b/crates/swc_visit_macros/Cargo.toml @@ -14,9 +14,9 @@ bench = false proc-macro = true [dependencies] -Inflector = "0.11.4" -proc-macro2 = "1" -quote = "1" -syn = { version = "2", features = ["parsing", "full"] } +Inflector = { workspace = true } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["parsing", "full"] } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } diff --git a/crates/swc_xml_ast/Cargo.toml b/crates/swc_xml_ast/Cargo.toml index 16beff61ee43..3396c549cb34 100644 --- a/crates/swc_xml_ast/Cargo.toml +++ b/crates/swc_xml_ast/Cargo.toml @@ -18,8 +18,8 @@ bench = false serde-impl = ["serde"] [dependencies] -is-macro = "0.3.5" -serde = { version = "1.0.197", features = ["derive"], optional = true } +is-macro = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } string_enum = { version = "0.4.2", path = "../string_enum/" } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } diff --git a/crates/swc_xml_codegen/Cargo.toml b/crates/swc_xml_codegen/Cargo.toml index 64307517bbea..f492033500cb 100644 --- a/crates/swc_xml_codegen/Cargo.toml +++ b/crates/swc_xml_codegen/Cargo.toml @@ -16,9 +16,9 @@ version = "0.13.23" bench = false [dependencies] -auto_impl = "1.2.0" -bitflags = "2.5.0" -rustc-hash = "1.1.0" +auto_impl = { workspace = true } +bitflags = { workspace = true } +rustc-hash = { workspace = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/swc_xml_codegen_macros/Cargo.toml b/crates/swc_xml_codegen_macros/Cargo.toml index 92fa1c45d0f1..6a5a2a776895 100644 --- a/crates/swc_xml_codegen_macros/Cargo.toml +++ b/crates/swc_xml_codegen_macros/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = [ - "강동윤 ", - "Alexander Akait ", + "강동윤 ", + "Alexander Akait ", ] description = "Internal macro for the xml code generator" documentation = "https://rustdoc.swc.rs/swc_xml_codegen_macros/" @@ -16,8 +16,8 @@ bench = false proc-macro = true [dependencies] -proc-macro2 = "1" -quote = "1" -syn = { version = "2", features = ["fold"] } +proc-macro2 = { workspace = true } +quote = { workspace = true } +syn = { workspace = true, features = ["fold"] } swc_macros_common = { version = "0.3.9", path = "../swc_macros_common" } diff --git a/crates/swc_xml_parser/Cargo.toml b/crates/swc_xml_parser/Cargo.toml index d47a3080c1c7..8458bb972d1e 100644 --- a/crates/swc_xml_parser/Cargo.toml +++ b/crates/swc_xml_parser/Cargo.toml @@ -24,8 +24,8 @@ swc_common = { version = "0.33.20", path = "../swc_common" } swc_xml_ast = { version = "0.12.19", path = "../swc_xml_ast" } [dev-dependencies] -serde = "1.0.197" -serde_json = "1.0.115" +serde = { workspace = true } +serde_json = { workspace = true } swc_xml_ast = { version = "0.12.19", path = "../swc_xml_ast", features = [ "serde-impl", diff --git a/crates/swc_xml_visit/Cargo.toml b/crates/swc_xml_visit/Cargo.toml index bc4fa12a456d..a2f9bac7c739 100644 --- a/crates/swc_xml_visit/Cargo.toml +++ b/crates/swc_xml_visit/Cargo.toml @@ -23,7 +23,7 @@ default = ["serde"] path = [] [dependencies] -serde = { version = "1", optional = true } +serde = { workspace = true, optional = true } swc_atoms = { version = "0.6.5", path = "../swc_atoms" } swc_common = { version = "0.33.20", path = "../swc_common" } diff --git a/crates/testing/Cargo.toml b/crates/testing/Cargo.toml index bd5be474cd44..4dccd43faa59 100644 --- a/crates/testing/Cargo.toml +++ b/crates/testing/Cargo.toml @@ -12,16 +12,16 @@ version = "0.35.23" bench = false [dependencies] -ansi_term = "0.12.1" +ansi_term = { workspace = true } cargo_metadata = "0.15.4" -difference = "2" -once_cell = "1.19.0" -pretty_assertions = "1.3" -regex = "1" -serde = "1" -serde_json = "1" -tracing = "0.1.40" -tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } +difference = { workspace = true } +once_cell = { workspace = true } +pretty_assertions = { workspace = true } +regex = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter"] } swc_common = { version = "0.33.20", path = "../swc_common", features = [ "tty-emitter", diff --git a/crates/testing_macros/Cargo.toml b/crates/testing_macros/Cargo.toml index e722cf43669e..e9d5ac4e73cf 100644 --- a/crates/testing_macros/Cargo.toml +++ b/crates/testing_macros/Cargo.toml @@ -17,11 +17,14 @@ bench = false proc-macro = true [dependencies] -anyhow = "1" -glob = "0.3" -once_cell = "1.19.0" -proc-macro2 = "1.0.24" -quote = "1" -regex = "1" -relative-path = "1.3.2" -syn = { version = "2", features = ["fold", "parsing", "full", "extra-traits"] } +anyhow = { workspace = true } +glob = { workspace = true } +once_cell = { workspace = true } +proc-macro2 = { workspace = true } +quote = { workspace = true } +regex = { workspace = true } +relative-path = { workspace = true } + + [dependencies.syn] + features = ["fold", "parsing", "full", "extra-traits"] + workspace = true diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index de220f824964..c01a6aae63a5 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -11,13 +11,13 @@ version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anyhow = "1.0.81" +anyhow = { workspace = true } cargo_metadata = "0.18.0" -chrono = "0.4.31" +chrono = { workspace = true } clap = { version = "4.4.6", features = ["derive"] } -semver = "1.0.20" -serde = "1.0.197" -serde_derive = "1.0.197" -serde_json = "1.0.115" -toml = "0.8.2" -walkdir = "2.4.0" +semver = { workspace = true } +serde = { workspace = true } +serde_derive = { workspace = true } +serde_json = { workspace = true } +toml = { workspace = true } +walkdir = { workspace = true } From b7de64b318e1df789261dbaf6baa4c49c6072bca Mon Sep 17 00:00:00 2001 From: magic-akari Date: Mon, 29 Apr 2024 00:42:35 +0800 Subject: [PATCH 2/2] chore: reorder dependencies --- Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c4c08aede05e..37cd155369be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,11 @@ members = [ resolver = "2" [workspace.dependencies] + # bytecheck version should be in sync with rkyv version. Do not bump individually. + bytecheck = "0.6.10" + rkyv = "=0.7.44" + + Inflector = "0.11.4" ahash = "0.8.8" ansi_term = "0.12.1" @@ -39,7 +44,6 @@ resolver = "2" base64 = "0.21.0" bitflags = "2.5.0" browserslist-rs = "0.15.0" - bytecheck = "0.6.10" cfg-if = "1.0.0" chrono = "0.4.31" console_error_panic_hook = "0.1.7" @@ -86,7 +90,6 @@ resolver = "2" regex = "1.5.4" relative-path = "1.6.1" reqwest = "0.11.14" - rkyv = "=0.7.44" rustc-hash = "1.1.0" ryu-js = "1.0.0" scoped-tls = "1.0.1"