diff --git a/crates/ast_node/Cargo.toml b/crates/ast_node/Cargo.toml index 0290a1dfac8c..963be7eab134 100644 --- a/crates/ast_node/Cargo.toml +++ b/crates/ast_node/Cargo.toml @@ -13,12 +13,13 @@ bench = false proc-macro = true [dependencies] -darling = "0.13" -pmutil = "0.5.1" -proc-macro2 = "1" -quote = "1" +darling = "0.13" +pmutil = "0.5.1" +proc-macro2 = "1" +quote = "1" + swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } -[dependencies.syn] -features = ["derive", "fold", "parsing", "printing", "visit-mut"] -version = "1" + [dependencies.syn] + features = ["derive", "fold", "parsing", "printing", "visit-mut"] + version = "1" diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index c2a0d619cf1e..8e71ab2e251e 100644 --- a/crates/dbg-swc/Cargo.toml +++ b/crates/dbg-swc/Cargo.toml @@ -12,14 +12,19 @@ bench = false name = "dbg-swc" [dependencies] -anyhow = "1.0.57" -clap = { version = "3", features = ["derive"] } -dialoguer = "0.10.2" -flate2 = "1.0" -rayon = "1.5.2" -serde = "1" -serde_json = "1" -sha1 = "0.10.1" +anyhow = "1.0.57" +clap = { version = "3", features = ["derive"] } +dialoguer = "0.10.2" +flate2 = "1.0" +rayon = "1.5.2" +serde = "1" +serde_json = "1" +sha1 = "0.10.1" +tempfile = "3.4.0" +tracing = "0.1.34" +tracing-subscriber = { version = "0.3.11", features = ["fmt", "env-filter"] } +url = "2" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", features = [ "concurrent", @@ -35,7 +40,3 @@ swc_ecma_transforms_base = { version = "0.122.16", path = "../swc_ecma_transform swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } swc_error_reporters = { version = "0.13.40", path = "../swc_error_reporters" } swc_timer = { version = "0.17.42", path = "../swc_timer" } -tempfile = "3.4.0" -tracing = "0.1.34" -tracing-subscriber = { version = "0.3.11", features = ["fmt", "env-filter"] } -url = "2" diff --git a/crates/from_variant/Cargo.toml b/crates/from_variant/Cargo.toml index 1bc85d5c4a4f..1bd4a46b0d8b 100644 --- a/crates/from_variant/Cargo.toml +++ b/crates/from_variant/Cargo.toml @@ -1,22 +1,23 @@ [package] -authors = ["강동윤 "] -description = "Automatically derive From impls for enums" +authors = ["강동윤 "] +description = "Automatically derive From impls for enums" documentation = "https://rustdoc.swc.rs/from_variant/" -edition = "2021" -license = "Apache-2.0" -name = "from_variant" -repository = "https://github.com/swc-project/swc.git" -version = "0.1.5" +edition = "2021" +license = "Apache-2.0" +name = "from_variant" +repository = "https://github.com/swc-project/swc.git" +version = "0.1.5" [lib] -bench = false +bench = false proc-macro = true [dependencies] -pmutil = "0.5.3" +pmutil = "0.5.3" proc-macro2 = "1" -swc_macros_common = {version = "0.3.7", path = "../swc_macros_common"} -[dependencies.syn] -features = ["derive", "fold", "parsing", "printing"] -version = "1" +swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } + + [dependencies.syn] + features = ["derive", "fold", "parsing", "printing"] + version = "1" diff --git a/crates/jsdoc/Cargo.toml b/crates/jsdoc/Cargo.toml index 6d546ddf2eef..686c6d81cb1e 100644 --- a/crates/jsdoc/Cargo.toml +++ b/crates/jsdoc/Cargo.toml @@ -18,8 +18,9 @@ swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } [dev-dependencies] -anyhow = "1" -dashmap = "5.1.0" +anyhow = "1" +dashmap = "5.1.0" + swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/preset_env_base/Cargo.toml b/crates/preset_env_base/Cargo.toml index 0edf899807f9..03bcccdf7942 100644 --- a/crates/preset_env_base/Cargo.toml +++ b/crates/preset_env_base/Cargo.toml @@ -15,9 +15,10 @@ ahash = "0.7.4" anyhow = "1" browserslist-rs = "0.12.2" dashmap = "5.1.0" -from_variant = { version = "0.1.5", path = "../from_variant" } once_cell = "1.12.0" semver = { version = "1.0.4", features = ["serde"] } serde = { version = "1", features = ["derive"] } st-map = "0.1.2" tracing = { version = "0.1.32" } + +from_variant = { version = "0.1.5", path = "../from_variant" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 6c91de4ee6e3..1f51989553af 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -47,22 +47,25 @@ plugin_transform_schema_vtest = [ ] [dependencies] -ahash = "0.7.4" -anyhow = "1" -base64 = "0.13.0" -dashmap = "5.1.0" -either = "1" -indexmap = { version = "1.6.1", features = ["serde"] } +ahash = "0.7.4" +anyhow = "1" +base64 = "0.13.0" +dashmap = "5.1.0" +either = "1" +indexmap = { version = "1.6.1", features = ["serde"] } jsonc-parser = { version = "0.21.0", features = ["serde"] } -lru = "0.7.1" -once_cell = "1.10.0" -parking_lot = "0.12.0" -pathdiff = "0.2.0" -regex = "1" -rustc-hash = "1.1.0" -serde = { version = "1", features = ["derive"] } -serde_json = "1" -sourcemap = "6" +lru = "0.7.1" +once_cell = "1.10.0" +parking_lot = "0.12.0" +pathdiff = "0.2.0" +regex = "1" +rustc-hash = "1.1.0" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +sourcemap = "6" +tracing = "0.1.32" +url = "2.3.1" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_cached = { version = "0.3.15", path = "../swc_cached" } swc_common = { version = "0.29.39", path = "../swc_common", features = [ @@ -101,8 +104,7 @@ swc_plugin_proxy = { version = "0.29.5", path = "../swc_plugin_proxy", optional swc_plugin_runner = { version = "0.91.10", path = "../swc_plugin_runner", optional = true, default-features = false } swc_timer = { version = "0.17.42", path = "../swc_timer" } swc_visit = { version = "0.5.5", path = "../swc_visit" } -tracing = "0.1.32" -url = "2.3.1" + [dependencies.napi-derive] default-features = false diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 157dad85d56d..550d4019d2ba 100644 --- a/crates/swc_bundler/Cargo.toml +++ b/crates/swc_bundler/Cargo.toml @@ -1,19 +1,19 @@ [package] authors = ["강동윤 "] # OUT_DIR is required for testing -build = "build.rs" -description = "Very fast ecmascript bundler" +build = "build.rs" +description = "Very fast ecmascript bundler" documentation = "https://rustdoc.swc.rs/swc_bundler/" -edition = "2021" -include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"] -license = "Apache-2.0" -name = "swc_bundler" -repository = "https://github.com/swc-project/swc.git" -version = "0.208.23" +edition = "2021" +include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"] +license = "Apache-2.0" +name = "swc_bundler" +repository = "https://github.com/swc-project/swc.git" +version = "0.208.23" -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] + [package.metadata.docs.rs] + all-features = true + rustdoc-args = ["--cfg", "docsrs"] [lib] bench = false @@ -21,52 +21,54 @@ bench = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] concurrent = ["swc_common/concurrent", "dashmap", "rayon", "indexmap/rayon"] -default = [] +default = [] [dependencies] -ahash = "0.7" -anyhow = "1" -crc = "2.1.0" -dashmap = {version = "5.1.0", optional = true} -indexmap = "1.6.1" -is-macro = "0.2.0" -once_cell = "1.10.0" -parking_lot = "0.12.0" -petgraph = "0.6" -radix_fmt = "1" -rayon = {version = "1", optional = true} +ahash = "0.7" +anyhow = "1" +crc = "2.1.0" +dashmap = { version = "5.1.0", optional = true } +indexmap = "1.6.1" +is-macro = "0.2.0" +once_cell = "1.10.0" +parking_lot = "0.12.0" +petgraph = "0.6" +radix_fmt = "1" +rayon = { version = "1", optional = true } relative-path = "1.2" -swc_atoms = {version = "0.4.39", path = "../swc_atoms"} -swc_common = {version = "0.29.39", path = "../swc_common"} -swc_ecma_ast = {version = "0.100.5", path = "../swc_ecma_ast"} -swc_ecma_codegen = {version = "0.135.11", path = "../swc_ecma_codegen"} -swc_ecma_loader = {version = "0.41.41", path = "../swc_ecma_loader"} -swc_ecma_parser = {version = "0.130.10", path = "../swc_ecma_parser"} -swc_ecma_transforms_base = {version = "0.122.16", path = "../swc_ecma_transforms_base"} -swc_ecma_transforms_optimization = {version = "0.181.21", path = "../swc_ecma_transforms_optimization"} -swc_ecma_utils = {version = "0.113.11", path = "../swc_ecma_utils"} -swc_ecma_visit = {version = "0.86.6", path = "../swc_ecma_visit"} -swc_fast_graph = {version = "0.17.41", path = "../swc_fast_graph/"} -swc_graph_analyzer = {version = "0.18.44", path = "../swc_graph_analyzer/"} -tracing = "0.1.32" +tracing = "0.1.32" + +swc_atoms = { version = "0.4.39", path = "../swc_atoms" } +swc_common = { version = "0.29.39", path = "../swc_common" } +swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } +swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" } +swc_ecma_loader = { version = "0.41.41", path = "../swc_ecma_loader" } +swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } +swc_ecma_transforms_base = { version = "0.122.16", path = "../swc_ecma_transforms_base" } +swc_ecma_transforms_optimization = { version = "0.181.21", path = "../swc_ecma_transforms_optimization" } +swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } +swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } +swc_fast_graph = { version = "0.17.41", path = "../swc_fast_graph/" } +swc_graph_analyzer = { version = "0.18.44", path = "../swc_graph_analyzer/" } [dev-dependencies] -hex = "0.4" -ntest = "0.7.2" +hex = "0.4" +ntest = "0.7.2" path-clean = "=0.1.0" -reqwest = {version = "0.11.13", features = ["blocking"]} -sha-1 = "0.10" -swc_ecma_loader = {version = "0.41.41", path = "../swc_ecma_loader", features = [ +reqwest = { version = "0.11.13", features = ["blocking"] } +sha-1 = "0.10" +tempfile = "3.4.0" +url = "2.1.1" + +swc_ecma_loader = { version = "0.41.41", path = "../swc_ecma_loader", features = [ "node", "cache", -]} -swc_ecma_minifier = {version = "0.175.23", path = "../swc_ecma_minifier", features = [ +] } +swc_ecma_minifier = { version = "0.175.23", path = "../swc_ecma_minifier", features = [ "concurrent", -]} -swc_ecma_transforms_proposal = {version = "0.156.18", path = "../swc_ecma_transforms_proposal"} -swc_ecma_transforms_react = {version = "0.167.20", path = "../swc_ecma_transforms_react"} -swc_ecma_transforms_typescript = {version = "0.171.20", path = "../swc_ecma_transforms_typescript"} -swc_node_base = {version = "0.5.8", path = "../swc_node_base"} -tempfile = "3.4.0" -testing = {version = "0.31.42", path = "../testing"} -url = "2.1.1" +] } +swc_ecma_transforms_proposal = { version = "0.156.18", path = "../swc_ecma_transforms_proposal" } +swc_ecma_transforms_react = { version = "0.167.20", path = "../swc_ecma_transforms_react" } +swc_ecma_transforms_typescript = { version = "0.171.20", path = "../swc_ecma_transforms_typescript" } +swc_node_base = { version = "0.5.8", path = "../swc_node_base" } +testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_common/Cargo.toml b/crates/swc_common/Cargo.toml index 69b65acf8efb..35ededb1e223 100644 --- a/crates/swc_common/Cargo.toml +++ b/crates/swc_common/Cargo.toml @@ -52,13 +52,10 @@ rkyv-bytecheck-impl = ["__rkyv", "rkyv-latest", "swc_atoms/rkyv-bytecheck-impl"] ahash = "0.7.4" anyhow = { version = "1.0.45", optional = true } arbitrary = { version = "1", optional = true, features = ["derive"] } -ast_node = { version = "0.8.8", path = "../ast_node" } atty = { version = "0.2", optional = true } -better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" } bytecheck = { version = "0.6.9", optional = true } cfg-if = "1.0.0" either = "1.5" -from_variant = { version = "0.1.5", path = "../from_variant" } new_debug_unreachable = "1.0.4" num-bigint = "0.4" once_cell = "1.10.0" @@ -66,19 +63,24 @@ parking_lot = { version = "0.12.0", optional = true } rkyv = { version = "=0.7.37", optional = true } # This is to avoid cargo version selection conflict between rkyv=0.7.37 and other versions, as it is strictly pinned # cannot be merged. -rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true } -rustc-hash = "1.1.0" -serde = { version = "1.0.119", features = ["derive"] } -siphasher = "0.3.9" -sourcemap = { version = "6", optional = true } -string_cache = "0.8.7" +rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true } +rustc-hash = "1.1.0" +serde = { version = "1.0.119", features = ["derive"] } +siphasher = "0.3.9" +sourcemap = { version = "6", optional = true } +string_cache = "0.8.7" +termcolor = { version = "1.0", optional = true } +tracing = "0.1.32" +unicode-width = "0.1.4" +url = "2.2.2" + +ast_node = { version = "0.8.8", path = "../ast_node" } +better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" } +from_variant = { version = "0.1.5", path = "../from_variant" } swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_eq_ignore_macros = { version = "0.1.1", path = "../swc_eq_ignore_macros" } swc_visit = { version = "0.5.5", path = "../swc_visit" } -termcolor = { version = "1.0", optional = true } -tracing = "0.1.32" -unicode-width = "0.1.4" -url = "2.2.2" + [dev-dependencies] criterion = "0.3" diff --git a/crates/swc_config/Cargo.toml b/crates/swc_config/Cargo.toml index 7fc50bbd6944..dbe825559999 100644 --- a/crates/swc_config/Cargo.toml +++ b/crates/swc_config/Cargo.toml @@ -9,9 +9,10 @@ repository = "https://github.com/swc-project/swc.git" version = "0.1.5" [dependencies] -indexmap = "1.6.1" -serde = { version = "1", features = ["derive"] } -serde_json = "1" +indexmap = "1.6.1" +serde = { version = "1", features = ["derive"] } +serde_json = "1" + swc_config_macro = { version = "0.1.1", path = "../swc_config_macro" } [lib] diff --git a/crates/swc_config_macro/Cargo.toml b/crates/swc_config_macro/Cargo.toml index 33fda46d5bf5..29a06565c501 100644 --- a/crates/swc_config_macro/Cargo.toml +++ b/crates/swc_config_macro/Cargo.toml @@ -13,8 +13,9 @@ bench = false proc-macro = true [dependencies] -pmutil = "0.5.3" -proc-macro2 = "1" -quote = "1" +pmutil = "0.5.3" +proc-macro2 = "1" +quote = "1" +syn = "1" + swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } -syn = "1" diff --git a/crates/swc_css_ast/Cargo.toml b/crates/swc_css_ast/Cargo.toml index b6c93d7b1a72..54d509af47fa 100644 --- a/crates/swc_css_ast/Cargo.toml +++ b/crates/swc_css_ast/Cargo.toml @@ -19,10 +19,11 @@ rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv [dependencies] -bytecheck = { version = "0.6.9", optional = true } -is-macro = "0.2.0" -rkyv = { version = "=0.7.37", optional = true } -serde = { version = "1.0.127", features = ["derive"] } +bytecheck = { version = "0.6.9", optional = true } +is-macro = "0.2.0" +rkyv = { version = "=0.7.37", optional = true } +serde = { version = "1.0.127", features = ["derive"] } + string_enum = { version = "0.3.4", path = "../string_enum/" } swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_css_codegen/Cargo.toml b/crates/swc_css_codegen/Cargo.toml index a27bed6593bf..6e65e9b311fb 100644 --- a/crates/swc_css_codegen/Cargo.toml +++ b/crates/swc_css_codegen/Cargo.toml @@ -13,10 +13,11 @@ version = "0.144.17" bench = false [dependencies] -auto_impl = "0.5.0" -bitflags = "1.3.2" -rustc-hash = "1.1.0" -serde = "1.0.127" +auto_impl = "0.5.0" +bitflags = "1.3.2" +rustc-hash = "1.1.0" +serde = "1.0.127" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } diff --git a/crates/swc_css_codegen_macros/Cargo.toml b/crates/swc_css_codegen_macros/Cargo.toml index bff623cd9954..372bf15beb51 100644 --- a/crates/swc_css_codegen_macros/Cargo.toml +++ b/crates/swc_css_codegen_macros/Cargo.toml @@ -13,8 +13,9 @@ bench = false proc-macro = true [dependencies] -pmutil = "0.5.1" -proc-macro2 = "1" -quote = "1" +pmutil = "0.5.1" +proc-macro2 = "1" +quote = "1" +syn = { version = "1", features = ["fold"] } + swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } -syn = { version = "1", features = ["fold"] } diff --git a/crates/swc_css_compat/Cargo.toml b/crates/swc_css_compat/Cargo.toml index 8dbce305e054..a982f47b13d0 100644 --- a/crates/swc_css_compat/Cargo.toml +++ b/crates/swc_css_compat/Cargo.toml @@ -13,10 +13,11 @@ version = "0.20.17" bench = false [dependencies] -bitflags = "1.3.2" -once_cell = "1.10.0" -serde = { version = "1.0.118", features = ["derive"] } -serde_json = "1.0.61" +bitflags = "1.3.2" +once_cell = "1.10.0" +serde = { version = "1.0.118", features = ["derive"] } +serde_json = "1.0.61" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } diff --git a/crates/swc_css_lints/Cargo.toml b/crates/swc_css_lints/Cargo.toml index 8407479f7ea1..44e0f43a0cbd 100644 --- a/crates/swc_css_lints/Cargo.toml +++ b/crates/swc_css_lints/Cargo.toml @@ -13,18 +13,20 @@ version = "0.53.14" bench = false [dependencies] -auto_impl = "0.5.0" -parking_lot = "0.12.0" -rayon = "1.5.1" -serde = { version = "1.0.133", features = ["derive"] } +auto_impl = "0.5.0" +parking_lot = "0.12.0" +rayon = "1.5.1" +serde = { version = "1.0.133", features = ["derive"] } +thiserror = "1.0.30" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_cached = { version = "0.3.15", path = "../swc_cached" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } swc_css_visit = { version = "0.133.13", path = "../swc_css_visit" } -thiserror = "1.0.30" [dev-dependencies] -serde_json = "1.0.79" +serde_json = "1.0.79" + swc_css_parser = { version = "0.143.14", path = "../swc_css_parser" } testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_css_minifier/Cargo.toml b/crates/swc_css_minifier/Cargo.toml index 03891327ffdd..dfece10366ad 100644 --- a/crates/swc_css_minifier/Cargo.toml +++ b/crates/swc_css_minifier/Cargo.toml @@ -13,7 +13,8 @@ version = "0.109.18" bench = false [dependencies] -serde = "1.0.118" +serde = "1.0.118" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } @@ -21,7 +22,8 @@ swc_css_utils = { version = "0.131.14", path = "../swc_css_utils/" } swc_css_visit = { version = "0.133.13", path = "../swc_css_visit" } [dev-dependencies] -criterion = "0.3" +criterion = "0.3" + swc_css_codegen = { version = "0.144.17", path = "../swc_css_codegen" } swc_css_parser = { version = "0.143.14", path = "../swc_css_parser" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } diff --git a/crates/swc_css_modules/Cargo.toml b/crates/swc_css_modules/Cargo.toml index 8e506cf38ac9..fc15414b29ae 100644 --- a/crates/swc_css_modules/Cargo.toml +++ b/crates/swc_css_modules/Cargo.toml @@ -15,8 +15,9 @@ 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 = "1.1.0" +serde = { version = "1", features = ["derive"] } + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } @@ -25,6 +26,7 @@ swc_css_parser = { version = "0.143.14", path = "../swc_css_parser" } swc_css_visit = { version = "0.133.13", path = "../swc_css_visit" } [dev-dependencies] -serde_json = "1" +serde_json = "1" + swc_css_compat = { version = "0.20.17", path = "../swc_css_compat" } testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_css_parser/Cargo.toml b/crates/swc_css_parser/Cargo.toml index d7136d5754a4..1edf25e4b2d2 100644 --- a/crates/swc_css_parser/Cargo.toml +++ b/crates/swc_css_parser/Cargo.toml @@ -16,16 +16,18 @@ bench = false debug = [] [dependencies] -bitflags = "1.2.1" -lexical = "6.1.0" -serde = "1.0.127" +bitflags = "1.2.1" +lexical = "6.1.0" +serde = "1.0.127" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } [dev-dependencies] -criterion = "0.3" -serde_json = "1.0.66" +criterion = "0.3" +serde_json = "1.0.66" + swc_css_visit = { version = "0.133.13", path = "../swc_css_visit" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_css_prefixer/Cargo.toml b/crates/swc_css_prefixer/Cargo.toml index 5ee953b28e81..e2ad1c0d2462 100644 --- a/crates/swc_css_prefixer/Cargo.toml +++ b/crates/swc_css_prefixer/Cargo.toml @@ -13,10 +13,11 @@ version = "0.146.17" bench = false [dependencies] -once_cell = "1.10.0" +once_cell = "1.10.0" +serde = { version = "1.0.118", features = ["derive"] } +serde_json = "1.0.61" + preset_env_base = { version = "0.4.1", path = "../preset_env_base" } -serde = { version = "1.0.118", features = ["derive"] } -serde_json = "1.0.61" swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } diff --git a/crates/swc_css_utils/Cargo.toml b/crates/swc_css_utils/Cargo.toml index bf6e0ac8337d..ad2de972878f 100644 --- a/crates/swc_css_utils/Cargo.toml +++ b/crates/swc_css_utils/Cargo.toml @@ -13,9 +13,10 @@ version = "0.131.14" bench = false [dependencies] -once_cell = "1.10.0" -serde = { version = "1.0.118", features = ["derive"] } -serde_json = "1.0.61" +once_cell = "1.10.0" +serde = { version = "1.0.118", features = ["derive"] } +serde_json = "1.0.61" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } diff --git a/crates/swc_css_visit/Cargo.toml b/crates/swc_css_visit/Cargo.toml index b81cf2063361..09a9069c82ce 100644 --- a/crates/swc_css_visit/Cargo.toml +++ b/crates/swc_css_visit/Cargo.toml @@ -20,7 +20,8 @@ default = ["serde"] path = [] [dependencies] -serde = { version = "1", optional = true } +serde = { version = "1", optional = true } + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast" } diff --git a/crates/swc_ecma_ast/Cargo.toml b/crates/swc_ecma_ast/Cargo.toml index 171cfe5d291a..fd45300fad18 100644 --- a/crates/swc_ecma_ast/Cargo.toml +++ b/crates/swc_ecma_ast/Cargo.toml @@ -41,6 +41,7 @@ rkyv = { package = "rkyv", version = "=0.7.37", optional = true } rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true } scoped-tls = "1.0.0" serde = { version = "1.0.133", features = ["derive"] } + string_enum = { version = "0.3.4", path = "../string_enum" } swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_ecma_codegen/Cargo.toml b/crates/swc_ecma_codegen/Cargo.toml index cc273c85f6e8..71888bbaeef8 100644 --- a/crates/swc_ecma_codegen/Cargo.toml +++ b/crates/swc_ecma_codegen/Cargo.toml @@ -13,22 +13,24 @@ version = "0.135.11" bench = false [dependencies] -memchr = "2.4.1" -num-bigint = { version = "0.4", features = ["serde"] } -once_cell = "1.10.0" -rustc-hash = "1.1.0" -serde = "1.0.127" -sourcemap = "6" +memchr = "2.4.1" +num-bigint = { version = "0.4", features = ["serde"] } +once_cell = "1.10.0" +rustc-hash = "1.1.0" +serde = "1.0.127" +sourcemap = "6" +tracing = "0.1.32" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } swc_ecma_codegen_macros = { version = "0.7.2", path = "../swc_ecma_codegen_macros" } -tracing = "0.1.32" [dev-dependencies] -base64 = "0.13" -criterion = "0.3" +base64 = "0.13" +criterion = "0.3" serde_json = "1" + swc_common = { version = "0.29.39", path = "../swc_common", features = [ "sourcemap", ] } @@ -36,6 +38,7 @@ swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } swc_ecma_testing = { version = "0.20.7", path = "../swc_ecma_testing" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } testing = { version = "0.31.42", path = "../testing" } + [[bench]] harness = false name = "bench" diff --git a/crates/swc_ecma_codegen_macros/Cargo.toml b/crates/swc_ecma_codegen_macros/Cargo.toml index 5f0da26ad4ee..21abd7eed4eb 100644 --- a/crates/swc_ecma_codegen_macros/Cargo.toml +++ b/crates/swc_ecma_codegen_macros/Cargo.toml @@ -1,25 +1,26 @@ [package] -authors = ["강동윤 "] -description = "Macros for swc_ecma_codegen." +authors = ["강동윤 "] +description = "Macros for swc_ecma_codegen." documentation = "https://rustdoc.swc.rs/swc_ecma_codegen_macros/" -edition = "2021" -license = "Apache-2.0" -name = "swc_ecma_codegen_macros" -repository = "https://github.com/swc-project/swc.git" -version = "0.7.2" +edition = "2021" +license = "Apache-2.0" +name = "swc_ecma_codegen_macros" +repository = "https://github.com/swc-project/swc.git" +version = "0.7.2" [lib] -bench = false +bench = false proc-macro = true [dependencies] -pmutil = "0.5.1" +pmutil = "0.5.1" proc-macro2 = "1" -swc_macros_common = {version = "0.3.7", path = "../swc_macros_common"} -[dependencies.syn] -features = ["fold"] -version = "1" +swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } -[dependencies.quote] -version = "1" + [dependencies.syn] + features = ["fold"] + version = "1" + + [dependencies.quote] + version = "1" diff --git a/crates/swc_ecma_dep_graph/Cargo.toml b/crates/swc_ecma_dep_graph/Cargo.toml index fe388d6aa436..617ad67e3ed5 100644 --- a/crates/swc_ecma_dep_graph/Cargo.toml +++ b/crates/swc_ecma_dep_graph/Cargo.toml @@ -19,5 +19,6 @@ swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } [dev-dependencies] pretty_assertions = "1.1" -swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } -testing = { version = "0.31.42", path = "../testing" } + +swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } +testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_ecma_ext_transforms/Cargo.toml b/crates/swc_ecma_ext_transforms/Cargo.toml index adc730790c06..7b87a1821515 100644 --- a/crates/swc_ecma_ext_transforms/Cargo.toml +++ b/crates/swc_ecma_ext_transforms/Cargo.toml @@ -11,7 +11,8 @@ version = "0.99.11" bench = false [dependencies] -phf = { version = "0.10", features = ["macros"] } +phf = { version = "0.10", features = ["macros"] } + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } diff --git a/crates/swc_ecma_lints/Cargo.toml b/crates/swc_ecma_lints/Cargo.toml index 19dce027c303..cc9e6567c940 100644 --- a/crates/swc_ecma_lints/Cargo.toml +++ b/crates/swc_ecma_lints/Cargo.toml @@ -13,13 +13,14 @@ version = "0.77.16" bench = false [dependencies] -ahash = "0.7" -auto_impl = "0.5.0" -dashmap = "5.1.0" +ahash = "0.7" +auto_impl = "0.5.0" +dashmap = "5.1.0" parking_lot = "0.12.0" -rayon = "1.5.1" -regex = "1" -serde = { version = "1.0.133", features = ["derive"] } +rayon = "1.5.1" +regex = "1" +serde = { version = "1.0.133", features = ["derive"] } + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common", features = [ "concurrent", diff --git a/crates/swc_ecma_loader/Cargo.toml b/crates/swc_ecma_loader/Cargo.toml index b285620ecf10..ae3d3c7d0000 100644 --- a/crates/swc_ecma_loader/Cargo.toml +++ b/crates/swc_ecma_loader/Cargo.toml @@ -35,10 +35,11 @@ path-clean = { version = "=0.1.0", optional = true } pathdiff = "0.2.1" serde = { version = "1", features = ["derive"] } serde_json = { version = "1.0.64", optional = true } -swc_cached = { version = "0.3.15", optional = true, path = "../swc_cached" } -swc_common = { version = "0.29.39", path = "../swc_common" } tracing = "0.1.32" +swc_cached = { version = "0.3.15", optional = true, path = "../swc_cached" } +swc_common = { version = "0.29.39", path = "../swc_common" } + [dev-dependencies] lazy_static = "1.4.0" diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index 1e17a863c8e3..ddc415905afd 100644 --- a/crates/swc_ecma_minifier/Cargo.toml +++ b/crates/swc_ecma_minifier/Cargo.toml @@ -1,17 +1,17 @@ [package] -authors = ["강동윤 "] -description = "EcmaScript code minifier." +authors = ["강동윤 "] +description = "EcmaScript code minifier." documentation = "https://rustdoc.swc.rs/swc_ecma_minifier/" -edition = "2021" -include = ["Cargo.toml", "src/**/*.rs", "src/lists/*.json"] -license = "Apache-2.0" -name = "swc_ecma_minifier" -repository = "https://github.com/swc-project/swc.git" -version = "0.175.23" +edition = "2021" +include = ["Cargo.toml", "src/**/*.rs", "src/lists/*.json"] +license = "Apache-2.0" +name = "swc_ecma_minifier" +repository = "https://github.com/swc-project/swc.git" +version = "0.175.23" -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] + [package.metadata.docs.rs] + all-features = true + rustdoc-args = ["--cfg", "docsrs"] [lib] bench = false @@ -29,47 +29,49 @@ debug = ["backtrace", "swc_ecma_transforms_optimization/debug"] trace-ast = [] [dependencies] -ahash = "0.7.6" -arrayvec = "0.7.2" -backtrace = {version = "0.3.61", optional = true} -indexmap = "1.6.1" -num-bigint = "0.4.3" -num_cpus = "1.13.1" -once_cell = "1.10.0" -parking_lot = "0.12.0" -pretty_assertions = {version = "1.1", optional = true} -radix_fmt = "=1.0.0" -rayon = {version = "1.5.1", optional = true} -regex = "1.5.3" -rustc-hash = "1.1.0" -ryu-js = "0.2.2" -serde = {version = "1.0.118", features = ["derive"]} -serde_json = "1.0.61" -swc_atoms = {version = "0.4.39", path = "../swc_atoms"} -swc_cached = {version = "0.3.15", path = "../swc_cached"} -swc_common = {version = "0.29.39", path = "../swc_common"} -swc_config = {version = "0.1.5", path = "../swc_config"} -swc_ecma_ast = {version = "0.100.5", path = "../swc_ecma_ast"} -swc_ecma_codegen = {version = "0.135.11", path = "../swc_ecma_codegen"} -swc_ecma_parser = {version = "0.130.10", path = "../swc_ecma_parser"} -swc_ecma_transforms_base = {version = "0.122.16", path = "../swc_ecma_transforms_base"} -swc_ecma_transforms_optimization = {version = "0.181.21", path = "../swc_ecma_transforms_optimization"} -swc_ecma_usage_analyzer = {version = "0.9.12", path = "../swc_ecma_usage_analyzer"} -swc_ecma_utils = {version = "0.113.11", path = "../swc_ecma_utils"} -swc_ecma_visit = {version = "0.86.6", path = "../swc_ecma_visit"} -swc_timer = {version = "0.17.42", path = "../swc_timer"} -tracing = "0.1.32" +ahash = "0.7.6" +arrayvec = "0.7.2" +backtrace = { version = "0.3.61", optional = true } +indexmap = "1.6.1" +num-bigint = "0.4.3" +num_cpus = "1.13.1" +once_cell = "1.10.0" +parking_lot = "0.12.0" +pretty_assertions = { version = "1.1", optional = true } +radix_fmt = "=1.0.0" +rayon = { version = "1.5.1", optional = true } +regex = "1.5.3" +rustc-hash = "1.1.0" +ryu-js = "0.2.2" +serde = { version = "1.0.118", features = ["derive"] } +serde_json = "1.0.61" +tracing = "0.1.32" + +swc_atoms = { version = "0.4.39", path = "../swc_atoms" } +swc_cached = { version = "0.3.15", path = "../swc_cached" } +swc_common = { version = "0.29.39", path = "../swc_common" } +swc_config = { version = "0.1.5", path = "../swc_config" } +swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } +swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" } +swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } +swc_ecma_transforms_base = { version = "0.122.16", path = "../swc_ecma_transforms_base" } +swc_ecma_transforms_optimization = { version = "0.181.21", path = "../swc_ecma_transforms_optimization" } +swc_ecma_usage_analyzer = { version = "0.9.12", path = "../swc_ecma_usage_analyzer" } +swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } +swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } +swc_timer = { version = "0.17.42", path = "../swc_timer" } [dev-dependencies] -ansi_term = "0.12.1" -anyhow = "1" -criterion = "0.3.5" +ansi_term = "0.12.1" +anyhow = "1" +criterion = "0.3.5" pretty_assertions = "1.1" -swc_ecma_testing = {version = "0.20.7", path = "../swc_ecma_testing"} -swc_node_base = {version = "0.5.8", path = "../swc_node_base"} -testing = {version = "0.31.42", path = "../testing"} -walkdir = "2" +walkdir = "2" + +swc_ecma_testing = { version = "0.20.7", path = "../swc_ecma_testing" } +swc_node_base = { version = "0.5.8", path = "../swc_node_base" } +testing = { version = "0.31.42", path = "../testing" } [[bench]] harness = false -name = "full" +name = "full" diff --git a/crates/swc_ecma_parser/Cargo.toml b/crates/swc_ecma_parser/Cargo.toml index 96a00586af24..179997fe69e4 100644 --- a/crates/swc_ecma_parser/Cargo.toml +++ b/crates/swc_ecma_parser/Cargo.toml @@ -24,18 +24,19 @@ typescript = [] verify = ["swc_ecma_visit"] [dependencies] -either = { version = "1.4" } -lexical = { version = "6.1.0", features = ["power-of-two"] } -num-bigint = "0.4" -serde = { version = "1", features = ["derive"] } -smallvec = "1.8.0" -smartstring = "1" +either = { version = "1.4" } +lexical = { version = "6.1.0", features = ["power-of-two"] } +num-bigint = "0.4" +serde = { version = "1", features = ["derive"] } +smallvec = "1.8.0" +smartstring = "1" +tracing = "0.1.32" +typed-arena = "2.0.1" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit", optional = true } -tracing = "0.1.32" -typed-arena = "2.0.1" [target.'cfg(not(any(target_arch = "wasm32", target_arch = "arm")))'.dependencies] stacker = "0.1.15" @@ -44,11 +45,12 @@ stacker = "0.1.15" criterion = "0.3" pretty_assertions = "1.1" serde_json = "1" -swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } -swc_node_base = { version = "0.5.8", path = "../swc_node_base" } -testing = { version = "0.31.42", path = "../testing" } walkdir = "2" +swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } +swc_node_base = { version = "0.5.8", path = "../swc_node_base" } +testing = { version = "0.31.42", path = "../testing" } + [[example]] name = "lexer" diff --git a/crates/swc_ecma_preset_env/Cargo.toml b/crates/swc_ecma_preset_env/Cargo.toml index 65f9d6af9e73..3169973f79cf 100644 --- a/crates/swc_ecma_preset_env/Cargo.toml +++ b/crates/swc_ecma_preset_env/Cargo.toml @@ -12,16 +12,17 @@ version = "0.189.21" bench = false [dependencies] -ahash = "0.7.4" -anyhow = "1" -dashmap = "5.1.0" -indexmap = "1.6.1" -once_cell = "1.10.0" -preset_env_base = { version = "0.4.1", path = "../preset_env_base" } -semver = { version = "1.0.4", features = ["serde"] } -serde = { version = "1", features = ["derive"] } +ahash = "0.7.4" +anyhow = "1" +dashmap = "5.1.0" +indexmap = "1.6.1" +once_cell = "1.10.0" +semver = { version = "1.0.4", features = ["serde"] } +serde = { version = "1", features = ["derive"] } serde_json = "1" -st-map = "0.1.2" +st-map = "0.1.2" + +preset_env_base = { version = "0.4.1", path = "../preset_env_base" } string_enum = { version = "0.3.4", path = "../string_enum" } swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } @@ -36,9 +37,10 @@ swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } [dev-dependencies] criterion = "0.3" pretty_assertions = "1.1" -swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" } -swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } -testing = { version = "0.31.42", path = "../testing" } + +swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" } +swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } +testing = { version = "0.31.42", path = "../testing" } [[bench]] harness = false diff --git a/crates/swc_ecma_quote_macros/Cargo.toml b/crates/swc_ecma_quote_macros/Cargo.toml index 16f6c6fa07f5..97da3a0bb79e 100644 --- a/crates/swc_ecma_quote_macros/Cargo.toml +++ b/crates/swc_ecma_quote_macros/Cargo.toml @@ -13,13 +13,14 @@ bench = false proc-macro = true [dependencies] -anyhow = "1" -pmutil = "0.5.1" -proc-macro2 = "1" -quote = "1" +anyhow = "1" +pmutil = "0.5.1" +proc-macro2 = "1" +quote = "1" +syn = "1" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } -syn = "1" diff --git a/crates/swc_ecma_transforms/Cargo.toml b/crates/swc_ecma_transforms/Cargo.toml index 5ae266378691..820f632ae9f3 100644 --- a/crates/swc_ecma_transforms/Cargo.toml +++ b/crates/swc_ecma_transforms/Cargo.toml @@ -45,10 +45,11 @@ swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_u swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } [dev-dependencies] -pretty_assertions = "1.1" -sourcemap = "6" +pretty_assertions = "1.1" +sourcemap = "6" +tempfile = "3" + swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" } swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } swc_ecma_transforms_testing = { version = "0.125.16", path = "../swc_ecma_transforms_testing" } -tempfile = "3" testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_ecma_transforms_base/Cargo.toml b/crates/swc_ecma_transforms_base/Cargo.toml index 1eb6bc508ab4..d236b0bff016 100644 --- a/crates/swc_ecma_transforms_base/Cargo.toml +++ b/crates/swc_ecma_transforms_base/Cargo.toml @@ -26,17 +26,19 @@ rayon = { version = "1", optional = true } rustc-hash = "1.1.0" serde = { version = "1", features = ["derive"] } smallvec = "1.8.0" -swc_atoms = { version = "0.4.39", path = "../swc_atoms" } -swc_common = { version = "0.29.39", path = "../swc_common" } -swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } -swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } -swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } -swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } tracing = "0.1.32" +swc_atoms = { version = "0.4.39", path = "../swc_atoms" } +swc_common = { version = "0.29.39", path = "../swc_common" } +swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } +swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } +swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } +swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } + [dev-dependencies] -criterion = "0.3" -rayon = "1" +criterion = "0.3" +rayon = "1" + swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" } swc_ecma_transforms_macros = { version = "0.5.1", path = "../swc_ecma_transforms_macros" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } diff --git a/crates/swc_ecma_transforms_compat/Cargo.toml b/crates/swc_ecma_transforms_compat/Cargo.toml index 22e1fc33606b..ec2c0194d1b6 100644 --- a/crates/swc_ecma_transforms_compat/Cargo.toml +++ b/crates/swc_ecma_transforms_compat/Cargo.toml @@ -20,14 +20,16 @@ concurrent = [ ] [dependencies] -ahash = "0.7.4" -arrayvec = "0.7.2" -indexmap = "1.6.1" -is-macro = "0.2.0" -num-bigint = "0.4" -rayon = { version = "1.5.1", optional = true } -serde = { version = "1.0.118", features = ["derive"] } -smallvec = "1.8.0" +ahash = "0.7.4" +arrayvec = "0.7.2" +indexmap = "1.6.1" +is-macro = "0.2.0" +num-bigint = "0.4" +rayon = { version = "1.5.1", optional = true } +serde = { version = "1.0.118", features = ["derive"] } +smallvec = "1.8.0" +tracing = "0.1.32" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_config = { version = "0.1.5", path = "../swc_config" } @@ -38,10 +40,10 @@ swc_ecma_transforms_macros = { version = "0.5.1", path = "../swc_ecma_transform swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } swc_trace_macro = { version = "0.1.2", path = "../swc_trace_macro" } -tracing = "0.1.32" [dev-dependencies] -serde_json = "1.0.66" +serde_json = "1.0.66" + swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } swc_ecma_transforms_testing = { version = "0.125.16", path = "../swc_ecma_transforms_testing" } testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_ecma_transforms_macros/Cargo.toml b/crates/swc_ecma_transforms_macros/Cargo.toml index c12b22d24b62..93032e83acb6 100644 --- a/crates/swc_ecma_transforms_macros/Cargo.toml +++ b/crates/swc_ecma_transforms_macros/Cargo.toml @@ -1,20 +1,21 @@ [package] -authors = ["강동윤 "] -description = "Macros for swc_ecma_transforms." +authors = ["강동윤 "] +description = "Macros for swc_ecma_transforms." documentation = "https://rustdoc.swc.rs/swc_ecma_transforms_macros/" -edition = "2021" -license = "Apache-2.0" -name = "swc_ecma_transforms_macros" -repository = "https://github.com/swc-project/swc.git" -version = "0.5.1" +edition = "2021" +license = "Apache-2.0" +name = "swc_ecma_transforms_macros" +repository = "https://github.com/swc-project/swc.git" +version = "0.5.1" [lib] -bench = false +bench = false proc-macro = true [dependencies] -pmutil = "0.5.1" +pmutil = "0.5.1" proc-macro2 = "1" -quote = "1" -swc_macros_common = {version = "0.3.7", path = "../swc_macros_common"} -syn = {version = "1", features = ["fold", "parsing", "full"]} +quote = "1" +syn = { version = "1", features = ["fold", "parsing", "full"] } + +swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } diff --git a/crates/swc_ecma_transforms_module/Cargo.toml b/crates/swc_ecma_transforms_module/Cargo.toml index 0955c81502ad..072bbbbc50ac 100644 --- a/crates/swc_ecma_transforms_module/Cargo.toml +++ b/crates/swc_ecma_transforms_module/Cargo.toml @@ -13,16 +13,18 @@ version = "0.165.18" bench = false [dependencies] -Inflector = "0.11.4" -ahash = "0.7.4" -anyhow = "1.0.41" -bitflags = "1" -indexmap = "1.6.1" -is-macro = "0.2.0" +Inflector = "0.11.4" +ahash = "0.7.4" +anyhow = "1.0.41" +bitflags = "1" +indexmap = "1.6.1" +is-macro = "0.2.0" path-clean = "0.1.0" -pathdiff = "0.2.0" -regex = "1" -serde = { version = "1.0.118", features = ["derive"] } +pathdiff = "0.2.0" +regex = "1" +serde = { version = "1.0.118", features = ["derive"] } +tracing = "0.1.32" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_cached = { version = "0.3.15", path = "../swc_cached" } swc_common = { version = "0.29.39", path = "../swc_common" } @@ -34,11 +36,11 @@ swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "0.122.16", path = "../swc_ecma_transforms_base" } swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } -tracing = "0.1.32" [dev-dependencies] -indexmap = { version = "1.6.1", features = ["serde"] } +indexmap = { version = "1.6.1", features = ["serde"] } serde_json = "1" + swc_ecma_loader = { version = "0.41.41", path = "../swc_ecma_loader", features = [ "node", "tsc", diff --git a/crates/swc_ecma_transforms_optimization/Cargo.toml b/crates/swc_ecma_transforms_optimization/Cargo.toml index 850dc126e3c1..de700d8d5d4e 100644 --- a/crates/swc_ecma_transforms_optimization/Cargo.toml +++ b/crates/swc_ecma_transforms_optimization/Cargo.toml @@ -22,14 +22,16 @@ concurrent = [ debug = [] [dependencies] -ahash = "0.7.4" -dashmap = "5.1.0" -indexmap = "1.6.1" -once_cell = "1.10.0" -petgraph = "0.6" -rayon = { version = "1.5.1", optional = true } -rustc-hash = "1.1.0" -serde_json = "1.0.61" +ahash = "0.7.4" +dashmap = "5.1.0" +indexmap = "1.6.1" +once_cell = "1.10.0" +petgraph = "0.6" +rayon = { version = "1.5.1", optional = true } +rustc-hash = "1.1.0" +serde_json = "1.0.61" +tracing = "0.1.32" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } @@ -39,7 +41,6 @@ swc_ecma_transforms_macros = { version = "0.5.1", path = "../swc_ecma_transforms swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } swc_fast_graph = { version = "0.17.41", path = "../swc_fast_graph" } -tracing = "0.1.32" [dev-dependencies] swc_ecma_transforms_compat = { version = "0.148.18", path = "../swc_ecma_transforms_compat" } diff --git a/crates/swc_ecma_transforms_proposal/Cargo.toml b/crates/swc_ecma_transforms_proposal/Cargo.toml index c0d9c3eb1871..130c32a70456 100644 --- a/crates/swc_ecma_transforms_proposal/Cargo.toml +++ b/crates/swc_ecma_transforms_proposal/Cargo.toml @@ -17,9 +17,10 @@ default = [] multi-module = ["swc_ecma_loader"] [dependencies] -either = "1.6.1" -serde = { version = "1.0.118", features = ["derive"] } -smallvec = "1.8.0" +either = "1.6.1" +serde = { version = "1.0.118", features = ["derive"] } +smallvec = "1.8.0" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } @@ -31,7 +32,8 @@ swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } [dev-dependencies] -serde_json = "1.0.66" +serde_json = "1.0.66" + swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } swc_ecma_transforms_compat = { version = "0.148.18", path = "../swc_ecma_transforms_compat" } swc_ecma_transforms_testing = { version = "0.125.16", path = "../swc_ecma_transforms_testing" } diff --git a/crates/swc_ecma_transforms_react/Cargo.toml b/crates/swc_ecma_transforms_react/Cargo.toml index ac0dc68cf83a..32531d11f9b1 100644 --- a/crates/swc_ecma_transforms_react/Cargo.toml +++ b/crates/swc_ecma_transforms_react/Cargo.toml @@ -16,15 +16,16 @@ bench = false concurrent = ["rayon"] [dependencies] -ahash = "0.7.4" -base64 = "0.13.0" -dashmap = "5.1.0" -indexmap = "1.6.1" -once_cell = "1.10.0" -rayon = { version = "1.5.1", optional = true } -regex = "1.4.2" -serde = { version = "1.0.118", features = ["derive"] } -sha-1 = "=0.10.0" +ahash = "0.7.4" +base64 = "0.13.0" +dashmap = "5.1.0" +indexmap = "1.6.1" +once_cell = "1.10.0" +rayon = { version = "1.5.1", optional = true } +regex = "1.4.2" +serde = { version = "1.0.118", features = ["derive"] } +sha-1 = "=0.10.0" + string_enum = { version = "0.3.4", path = "../string_enum" } swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_ecma_transforms_testing/Cargo.toml b/crates/swc_ecma_transforms_testing/Cargo.toml index 98f72959830b..c1a405c14338 100644 --- a/crates/swc_ecma_transforms_testing/Cargo.toml +++ b/crates/swc_ecma_transforms_testing/Cargo.toml @@ -12,14 +12,16 @@ version = "0.125.16" bench = false [dependencies] -ansi_term = "0.12.1" -anyhow = "1" -base64 = "0.13" -hex = "0.4.3" -serde = "1" +ansi_term = "0.12.1" +anyhow = "1" +base64 = "0.13" +hex = "0.4.3" +serde = "1" serde_json = "1" -sha-1 = "0.10" -sourcemap = "6" +sha-1 = "0.10" +sourcemap = "6" +tempfile = "3.4.0" + swc_common = { version = "0.29.39", path = "../swc_common", features = [ "sourcemap", ] } @@ -30,5 +32,4 @@ swc_ecma_testing = { version = "0.20.8", path = "../swc_ecma_testing" } swc_ecma_transforms_base = { version = "0.122.16", path = "../swc_ecma_transforms_base" } swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } -tempfile = "3.4.0" testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_ecma_transforms_typescript/Cargo.toml b/crates/swc_ecma_transforms_typescript/Cargo.toml index 71d610713ab0..e5517c683f94 100644 --- a/crates/swc_ecma_transforms_typescript/Cargo.toml +++ b/crates/swc_ecma_transforms_typescript/Cargo.toml @@ -13,7 +13,8 @@ version = "0.171.20" bench = false [dependencies] -serde = { version = "1.0.118", features = ["derive"] } +serde = { version = "1.0.118", features = ["derive"] } + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } @@ -23,7 +24,8 @@ swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } [dev-dependencies] -criterion = "0.3" +criterion = "0.3" + swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" } swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } swc_ecma_transforms_compat = { version = "0.148.18", path = "../swc_ecma_transforms_compat" } diff --git a/crates/swc_ecma_usage_analyzer/Cargo.toml b/crates/swc_ecma_usage_analyzer/Cargo.toml index 7fcf0d0f067e..10fe605863b6 100644 --- a/crates/swc_ecma_usage_analyzer/Cargo.toml +++ b/crates/swc_ecma_usage_analyzer/Cargo.toml @@ -22,13 +22,14 @@ concurrent = ["swc_common/concurrent", "indexmap/rayon"] trace-ast = [] [dependencies] -ahash = "0.7.6" -indexmap = "1.6.1" -rustc-hash = "1.1.0" +ahash = "0.7.6" +indexmap = "1.6.1" +rustc-hash = "1.1.0" +tracing = "0.1.32" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } swc_timer = { version = "0.17.42", path = "../swc_timer" } -tracing = "0.1.32" diff --git a/crates/swc_ecma_utils/Cargo.toml b/crates/swc_ecma_utils/Cargo.toml index 05f8a7546cb8..f04b1580904a 100644 --- a/crates/swc_ecma_utils/Cargo.toml +++ b/crates/swc_ecma_utils/Cargo.toml @@ -20,17 +20,18 @@ bench = false concurrent = ["swc_common/concurrent", "rayon"] [dependencies] -indexmap = "1.6.1" -num_cpus = "1.13.1" -once_cell = "1.10.0" -rayon = { version = "1.5.1", optional = true } -rustc-hash = "1.1.0" +indexmap = "1.6.1" +num_cpus = "1.13.1" +once_cell = "1.10.0" +rayon = { version = "1.5.1", optional = true } +rustc-hash = "1.1.0" +tracing = "0.1.32" +unicode-id = "0.3" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } -tracing = "0.1.32" -unicode-id = "0.3" [dev-dependencies] swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_visit/Cargo.toml b/crates/swc_ecma_visit/Cargo.toml index 133bf52f3208..612df5ea3e17 100644 --- a/crates/swc_ecma_visit/Cargo.toml +++ b/crates/swc_ecma_visit/Cargo.toml @@ -21,10 +21,11 @@ default = [] path = [] [dependencies] -num-bigint = { version = "0.4", features = ["serde"] } -serde = { version = "1", optional = true } +num-bigint = { version = "0.4", features = ["serde"] } +serde = { version = "1", optional = true } +tracing = "0.1.32" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } swc_visit = { version = "0.5.5", path = "../swc_visit" } -tracing = "0.1.32" diff --git a/crates/swc_error_reporters/Cargo.toml b/crates/swc_error_reporters/Cargo.toml index 9f135297c4cb..72580be042ec 100644 --- a/crates/swc_error_reporters/Cargo.toml +++ b/crates/swc_error_reporters/Cargo.toml @@ -12,10 +12,11 @@ version = "0.13.40" bench = false [dependencies] -anyhow = "1" -miette = { version = "4.2.1", features = ["fancy"] } -once_cell = "1" +anyhow = "1" +miette = { version = "4.2.1", features = ["fancy"] } +once_cell = "1" parking_lot = "0.12.0" + swc_common = { version = "0.29.39", path = "../swc_common", features = [ "concurrent", ] } diff --git a/crates/swc_estree_ast/Cargo.toml b/crates/swc_estree_ast/Cargo.toml index a5ab720624d5..4d0b454dd94b 100644 --- a/crates/swc_estree_ast/Cargo.toml +++ b/crates/swc_estree_ast/Cargo.toml @@ -18,8 +18,9 @@ version = "0.19.39" bench = false [dependencies] +serde = { version = "1", features = ["derive"] } +serde_json = "1" + better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" } -serde = { version = "1", features = ["derive"] } -serde_json = "1" swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 8f4c883685bf..c530fe76f373 100644 --- a/crates/swc_estree_compat/Cargo.toml +++ b/crates/swc_estree_compat/Cargo.toml @@ -16,12 +16,13 @@ version = "0.178.27" bench = false [dependencies] -ahash = { version = "0.7.0", features = ["compile-time-rng"] } -anyhow = "1" -copyless = "0.1.5" -rayon = "1.5.0" -serde = { version = "1", features = ["derive"] } +ahash = { version = "0.7.0", features = ["compile-time-rng"] } +anyhow = "1" +copyless = "0.1.5" +rayon = "1.5.0" +serde = { version = "1", features = ["derive"] } serde_json = "1.0.62" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common", features = [ "concurrent", @@ -36,8 +37,9 @@ swc_estree_ast = { version = "0.19.39", path = "../swc_estree_ast" } swc_node_comments = { version = "0.16.39", path = "../swc_node_comments/" } [dev-dependencies] -criterion = "0.3" -pretty_assertions = "1.1" +criterion = "0.3" +pretty_assertions = "1.1" + swc = { version = "0.255.27", path = "../swc" } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } diff --git a/crates/swc_fast_graph/Cargo.toml b/crates/swc_fast_graph/Cargo.toml index 8783ccdc9384..2daa31e01d82 100644 --- a/crates/swc_fast_graph/Cargo.toml +++ b/crates/swc_fast_graph/Cargo.toml @@ -1,18 +1,19 @@ [package] -authors = ["강동윤 "] +authors = ["강동윤 "] description = "Faster version of petgraph" -edition = "2021" -include = ["Cargo.toml", "src/**/*.rs"] -license = "Apache-2.0" -name = "swc_fast_graph" -repository = "https://github.com/swc-project/swc.git" -version = "0.17.41" +edition = "2021" +include = ["Cargo.toml", "src/**/*.rs"] +license = "Apache-2.0" +name = "swc_fast_graph" +repository = "https://github.com/swc-project/swc.git" +version = "0.17.41" [lib] bench = false [dependencies] -indexmap = "1.6.1" -petgraph = "0.6" -swc_common = { version = "0.29.39", path = "../swc_common" } +indexmap = "1.6.1" +petgraph = "0.6" rustc-hash = "1.1.0" + +swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_html_ast/Cargo.toml b/crates/swc_html_ast/Cargo.toml index d828d3bc0d7f..b704bea5016f 100644 --- a/crates/swc_html_ast/Cargo.toml +++ b/crates/swc_html_ast/Cargo.toml @@ -17,13 +17,14 @@ bench = false [features] __rkyv = [] rkyv-bytecheck-impl = [] -rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"] +rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "swc_common/rkyv-impl"] [dependencies] -bytecheck = { version = "0.6.9", optional = true } -is-macro = "0.2.0" -rkyv = { version = "=0.7.37", optional = true } -serde = { version = "1.0.127", features = ["derive"] } +bytecheck = { version = "0.6.9", optional = true } +is-macro = "0.2.0" +rkyv = { version = "=0.7.37", optional = true } +serde = { version = "1.0.127", features = ["derive"] } + string_enum = { version = "0.3.4", path = "../string_enum/" } swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_html_codegen/Cargo.toml b/crates/swc_html_codegen/Cargo.toml index d4fe5556e5ec..d25564be0020 100644 --- a/crates/swc_html_codegen/Cargo.toml +++ b/crates/swc_html_codegen/Cargo.toml @@ -16,9 +16,10 @@ version = "0.37.45" bench = false [dependencies] -auto_impl = "0.5.0" -bitflags = "1.3.2" -rustc-hash = "1.1.0" +auto_impl = "0.5.0" +bitflags = "1.3.2" +rustc-hash = "1.1.0" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_html_ast = { version = "0.28.32", path = "../swc_html_ast" } diff --git a/crates/swc_html_codegen_macros/Cargo.toml b/crates/swc_html_codegen_macros/Cargo.toml index ebde7993fce4..5f6281b11ebb 100644 --- a/crates/swc_html_codegen_macros/Cargo.toml +++ b/crates/swc_html_codegen_macros/Cargo.toml @@ -16,8 +16,9 @@ bench = false proc-macro = true [dependencies] -pmutil = "0.5.1" -proc-macro2 = "1" -quote = "1" +pmutil = "0.5.1" +proc-macro2 = "1" +quote = "1" +syn = { version = "1", features = ["fold"] } + swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } -syn = { version = "1", features = ["fold"] } diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 2266479c740a..31359754f5f2 100644 --- a/crates/swc_html_minifier/Cargo.toml +++ b/crates/swc_html_minifier/Cargo.toml @@ -16,9 +16,10 @@ version = "0.115.26" bench = false [dependencies] -once_cell = "1.10.0" -serde = { version = "1.0.118", features = ["derive"] } -serde_json = "1.0.61" +once_cell = "1.10.0" +serde = { version = "1.0.118", features = ["derive"] } +serde_json = "1.0.61" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_cached = { version = "0.3.15", path = "../swc_cached" } swc_common = { version = "0.29.39", path = "../swc_common" } @@ -39,7 +40,8 @@ swc_html_utils = { version = "0.14.40", path = "../swc_html_utils" } swc_html_visit = { version = "0.28.32", path = "../swc_html_visit" } [dev-dependencies] -criterion = "0.3" +criterion = "0.3" + swc_node_base = { version = "0.5.8", path = "../swc_node_base" } testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_html_parser/Cargo.toml b/crates/swc_html_parser/Cargo.toml index 12f8615e88a0..9e0cb2d44a23 100644 --- a/crates/swc_html_parser/Cargo.toml +++ b/crates/swc_html_parser/Cargo.toml @@ -25,9 +25,10 @@ swc_html_ast = { version = "0.28.32", path = "../swc_html_ast" } swc_html_utils = { version = "0.14.40", path = "../swc_html_utils" } [dev-dependencies] -criterion = "0.3" -serde = "1.0.127" -serde_json = "1.0.66" +criterion = "0.3" +serde = "1.0.127" +serde_json = "1.0.66" + swc_html_visit = { version = "0.28.32", path = "../swc_html_visit" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_html_utils/Cargo.toml b/crates/swc_html_utils/Cargo.toml index 5eefcd89077c..16b8a4964d58 100644 --- a/crates/swc_html_utils/Cargo.toml +++ b/crates/swc_html_utils/Cargo.toml @@ -19,5 +19,6 @@ bench = false once_cell = "1.10.0" serde = { version = "1.0.118", features = ["derive"] } serde_json = "1.0.61" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_html_visit/Cargo.toml b/crates/swc_html_visit/Cargo.toml index cf0612582399..ed6a40c95834 100644 --- a/crates/swc_html_visit/Cargo.toml +++ b/crates/swc_html_visit/Cargo.toml @@ -23,7 +23,8 @@ default = ["serde"] path = [] [dependencies] -serde = { version = "1", optional = true } +serde = { version = "1", optional = true } + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_html_ast = { version = "0.28.32", path = "../swc_html_ast" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index a9cd2a94f96a..396b0f0693cc 100644 --- a/crates/swc_node_bundler/Cargo.toml +++ b/crates/swc_node_bundler/Cargo.toml @@ -18,13 +18,15 @@ swc_v1 = [] swc_v2 = [] [dependencies] -anyhow = "1" -dashmap = "5.1.0" -is-macro = "0.2.0" -once_cell = "1.10.0" -regex = "1" -serde = { version = "1", features = ["derive"] } +anyhow = "1" +dashmap = "5.1.0" +is-macro = "0.2.0" +once_cell = "1.10.0" +regex = "1" +serde = { version = "1", features = ["derive"] } serde_json = "1" +tracing = "0.1.32" + string_enum = { version = "0.3.4", path = "../string_enum" } swc = { version = "0.255.27", path = "../swc" } swc_atoms = { version = "0.4.39", path = "../swc_atoms" } @@ -42,8 +44,8 @@ swc_ecma_transforms = { version = "0.212.21", path = "../swc_ecma_transforms" } swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } -tracing = "0.1.32" [dev-dependencies] pretty_assertions = "1.1" -testing = { version = "0.31.42", path = "../testing" } + +testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_node_comments/Cargo.toml b/crates/swc_node_comments/Cargo.toml index 44bcf6811472..2ab35b42cb49 100644 --- a/crates/swc_node_comments/Cargo.toml +++ b/crates/swc_node_comments/Cargo.toml @@ -15,7 +15,8 @@ version = "0.16.39" bench = false [dependencies] -ahash = "0.7.6" -dashmap = "5.1.0" +ahash = "0.7.6" +dashmap = "5.1.0" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_plugin_proxy/Cargo.toml b/crates/swc_plugin_proxy/Cargo.toml index 761a60195417..6da1493e068c 100644 --- a/crates/swc_plugin_proxy/Cargo.toml +++ b/crates/swc_plugin_proxy/Cargo.toml @@ -36,12 +36,14 @@ plugin-bytecheck-mode = [ plugin-mode = ["__plugin_mode", "swc_common/plugin-base", "rkyv-impl"] [dependencies] -better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" } -rkyv = { package = "rkyv", version = "=0.7.37", optional = true } + +rkyv = { package = "rkyv", version = "=0.7.37", optional = true } # This is to avoid cargo version selection conflict between rkyv=0.7.37 and other versions, as it is strictly pinned # cannot be merged. -rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true } -swc_common = { version = "0.29.39", path = "../swc_common" } -swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } -swc_trace_macro = { version = "0.1.2", path = "../swc_trace_macro" } -tracing = "0.1.32" +rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true } +tracing = "0.1.32" + +better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" } +swc_common = { version = "0.29.39", path = "../swc_common" } +swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" } +swc_trace_macro = { version = "0.1.2", path = "../swc_trace_macro" } diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml index 96a95709985a..2df695fff43d 100644 --- a/crates/swc_plugin_runner/Cargo.toml +++ b/crates/swc_plugin_runner/Cargo.toml @@ -36,21 +36,23 @@ rkyv-bytecheck-impl = [ rkyv-impl = ["__rkyv", "swc_common/plugin-rt", "swc_plugin_proxy/plugin-rt"] [dependencies] -anyhow = "1.0.42" -enumset = "1.0.12" -once_cell = "1.10.0" +anyhow = "1.0.42" +enumset = "1.0.12" +once_cell = "1.10.0" parking_lot = "0.12.0" -serde = { version = "1.0.126", features = ["derive"] } -serde_json = "1.0.64" +serde = { version = "1.0.126", features = ["derive"] } +serde_json = "1.0.64" +tracing = "0.1.32" +wasmer = { version = "2.3.0", default-features = false } +wasmer-wasi = { version = "2.3.0", default-features = false } + swc_common = { version = "0.29.39", path = "../swc_common", features = [ "concurrent", ] } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast", optional = true } swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast", optional = true } swc_plugin_proxy = { version = "0.29.5", path = "../swc_plugin_proxy" } -tracing = "0.1.32" -wasmer = { version = "2.3.0", default-features = false } -wasmer-wasi = { version = "2.3.0", default-features = false } + [target.'cfg(not(target_arch = "wasm32"))'.dependencies] wasmer-cache = { version = "2.3.0", optional = true } @@ -58,7 +60,10 @@ wasmer-compiler-cranelift = { version = "2.3.0" } wasmer-engine-universal = { version = "2.3.0" } [dev-dependencies] -criterion = "0.3" +criterion = "0.3" +wasmer = "2.3.0" +wasmer-wasi = "2.3.0" + swc_atoms = { version = "0.4.39", path = '../swc_atoms' } swc_css_ast = { version = "0.134.13", path = "../swc_css_ast", features = [ "rkyv-impl", @@ -72,8 +77,6 @@ swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" } swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } testing = { version = "0.31.42", path = "../testing" } -wasmer = "2.3.0" -wasmer-wasi = "2.3.0" [[bench]] harness = false diff --git a/crates/swc_visit/Cargo.toml b/crates/swc_visit/Cargo.toml index e54cc2663470..eedb174d5822 100644 --- a/crates/swc_visit/Cargo.toml +++ b/crates/swc_visit/Cargo.toml @@ -14,5 +14,6 @@ bench = false path = [] [dependencies] -either = "1.5.3" +either = "1.5.3" + swc_visit_macros = { version = "0.5.6", path = "../swc_visit_macros" } diff --git a/crates/swc_visit_macros/Cargo.toml b/crates/swc_visit_macros/Cargo.toml index 1d9831c07bf2..23e9c0911eca 100644 --- a/crates/swc_visit_macros/Cargo.toml +++ b/crates/swc_visit_macros/Cargo.toml @@ -14,9 +14,10 @@ bench = false proc-macro = true [dependencies] -Inflector = "0.11.4" -pmutil = "0.5.1" -proc-macro2 = "1" -quote = "1" +Inflector = "0.11.4" +pmutil = "0.5.1" +proc-macro2 = "1" +quote = "1" +syn = { version = "1", features = ["parsing", "full"] } + swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } -syn = { version = "1", features = ["parsing", "full"] } diff --git a/crates/swc_xml_ast/Cargo.toml b/crates/swc_xml_ast/Cargo.toml index 16c873fba9d8..55540d0e2fa0 100644 --- a/crates/swc_xml_ast/Cargo.toml +++ b/crates/swc_xml_ast/Cargo.toml @@ -15,8 +15,9 @@ version = "0.7.22" bench = false [dependencies] -is-macro = "0.2.0" -serde = { version = "1.0.127", features = ["derive"] } +is-macro = "0.2.0" +serde = { version = "1.0.127", features = ["derive"] } + string_enum = { version = "0.3.4", path = "../string_enum/" } swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } diff --git a/crates/swc_xml_codegen/Cargo.toml b/crates/swc_xml_codegen/Cargo.toml index 35a2ae987f78..278d40ce7caf 100644 --- a/crates/swc_xml_codegen/Cargo.toml +++ b/crates/swc_xml_codegen/Cargo.toml @@ -16,9 +16,10 @@ version = "0.8.24" bench = false [dependencies] -auto_impl = "0.5.0" -bitflags = "1.3.2" -rustc-hash = "1.1.0" +auto_impl = "0.5.0" +bitflags = "1.3.2" +rustc-hash = "1.1.0" + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_xml_ast = { version = "0.7.22", path = "../swc_xml_ast" } diff --git a/crates/swc_xml_codegen_macros/Cargo.toml b/crates/swc_xml_codegen_macros/Cargo.toml index ed7e9533fb41..024eacb1963d 100644 --- a/crates/swc_xml_codegen_macros/Cargo.toml +++ b/crates/swc_xml_codegen_macros/Cargo.toml @@ -1,5 +1,8 @@ [package] -authors = ["강동윤 ", "Alexander Akait "] +authors = [ + "강동윤 ", + "Alexander Akait ", +] description = "Internal macro for the xml code generator" documentation = "https://rustdoc.swc.rs/swc_xml_codegen_macros/" edition = "2021" @@ -9,12 +12,13 @@ repository = "https://github.com/swc-project/swc.git" version = "0.1.1" [lib] -bench = false +bench = false proc-macro = true [dependencies] -pmutil = "0.5.1" +pmutil = "0.5.1" proc-macro2 = "1" -quote = "1" -swc_macros_common = {version = "0.3.7", path = "../swc_macros_common"} -syn = {version = "1", features = ["fold"]} +quote = "1" +syn = { version = "1", features = ["fold"] } + +swc_macros_common = { version = "0.3.7", path = "../swc_macros_common" } diff --git a/crates/swc_xml_parser/Cargo.toml b/crates/swc_xml_parser/Cargo.toml index fe7cafd9e411..7d7bb98ea96c 100644 --- a/crates/swc_xml_parser/Cargo.toml +++ b/crates/swc_xml_parser/Cargo.toml @@ -24,7 +24,8 @@ swc_common = { version = "0.29.39", path = "../swc_common" } swc_xml_ast = { version = "0.7.22", path = "../swc_xml_ast" } [dev-dependencies] -serde = "1.0.127" -serde_json = "1.0.66" +serde = "1.0.127" +serde_json = "1.0.66" + swc_xml_visit = { version = "0.7.22", path = "../swc_xml_visit" } testing = { version = "0.31.42", path = "../testing" } diff --git a/crates/swc_xml_visit/Cargo.toml b/crates/swc_xml_visit/Cargo.toml index d9fe75ea1e24..ce06259fcb84 100644 --- a/crates/swc_xml_visit/Cargo.toml +++ b/crates/swc_xml_visit/Cargo.toml @@ -23,7 +23,8 @@ default = ["serde"] path = [] [dependencies] -serde = { version = "1", optional = true } +serde = { version = "1", optional = true } + swc_atoms = { version = "0.4.39", path = "../swc_atoms" } swc_common = { version = "0.29.39", path = "../swc_common" } swc_visit = { version = "0.5.5", path = "../swc_visit" } diff --git a/crates/testing/Cargo.toml b/crates/testing/Cargo.toml index 3cd28abc572b..1240636dac24 100644 --- a/crates/testing/Cargo.toml +++ b/crates/testing/Cargo.toml @@ -1,27 +1,28 @@ [package] -authors = ["강동윤 "] -description = "Testing utilities for the swc project." +authors = ["강동윤 "] +description = "Testing utilities for the swc project." documentation = "https://rustdoc.swc.rs/testing/" -edition = "2021" -license = "Apache-2.0" -name = "testing" -repository = "https://github.com/swc-project/swc.git" -version = "0.31.42" +edition = "2021" +license = "Apache-2.0" +name = "testing" +repository = "https://github.com/swc-project/swc.git" +version = "0.31.42" [lib] bench = false [dependencies] -ansi_term = "0.12.1" -difference = "2" -once_cell = "1.10.0" -pretty_assertions = "1.1" -regex = "1" -serde_json = "1.0.71" -swc_common = {version = "0.29.39", path = "../swc_common", features = [ +ansi_term = "0.12.1" +difference = "2" +once_cell = "1.10.0" +pretty_assertions = "1.1" +regex = "1" +serde_json = "1.0.71" +tracing = "0.1.32" +tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } + +swc_common = { version = "0.29.39", path = "../swc_common", features = [ "tty-emitter", -]} -swc_error_reporters = {version = "0.13.40", path = "../swc_error_reporters"} -testing_macros = {version = "0.2.9", path = "../testing_macros"} -tracing = "0.1.32" -tracing-subscriber = {version = "0.3.9", features = ["env-filter"]} +] } +swc_error_reporters = { version = "0.13.40", path = "../swc_error_reporters" } +testing_macros = { version = "0.2.9", path = "../testing_macros" }