2021-05-20 07:51:30 +03:00
|
|
|
[package]
|
2023-03-24 07:46:42 +03:00
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
|
|
|
description = "EcmaScript code minifier."
|
2021-05-20 09:09:30 +03:00
|
|
|
documentation = "https://rustdoc.swc.rs/swc_ecma_minifier/"
|
2023-03-24 07:46:42 +03:00
|
|
|
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"
|
2024-02-13 05:58:35 +03:00
|
|
|
version = "0.192.4"
|
2021-09-20 09:25:51 +03:00
|
|
|
|
2023-03-24 07:46:42 +03:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2021-11-25 08:16:18 +03:00
|
|
|
|
2022-04-04 14:12:03 +03:00
|
|
|
[lib]
|
|
|
|
bench = false
|
|
|
|
|
2021-05-28 13:44:03 +03:00
|
|
|
[features]
|
2022-09-01 07:36:30 +03:00
|
|
|
# This enables global concurrent mode
|
2022-08-11 12:52:44 +03:00
|
|
|
concurrent = [
|
|
|
|
"swc_common/concurrent",
|
|
|
|
"swc_ecma_transforms_base/concurrent-renamer",
|
2022-09-01 07:36:30 +03:00
|
|
|
"swc_ecma_transforms_optimization/concurrent",
|
2022-08-11 12:52:44 +03:00
|
|
|
"rayon",
|
|
|
|
"indexmap/rayon",
|
|
|
|
]
|
2022-03-25 09:44:07 +03:00
|
|
|
debug = ["backtrace", "swc_ecma_transforms_optimization/debug"]
|
2023-03-27 07:28:42 +03:00
|
|
|
default = ["serde-impl"]
|
|
|
|
# Implement serialize/deserialize for more types
|
|
|
|
extra-serde = ["swc_ecma_ast/serde-impl", "serde-impl"]
|
|
|
|
serde-impl = []
|
|
|
|
trace-ast = []
|
2021-05-28 13:44:03 +03:00
|
|
|
|
2021-05-20 07:51:30 +03:00
|
|
|
[dependencies]
|
2023-03-24 07:46:42 +03:00
|
|
|
arrayvec = "0.7.2"
|
|
|
|
backtrace = { version = "0.3.61", optional = true }
|
2023-12-03 04:12:30 +03:00
|
|
|
indexmap = "2.0.0"
|
2023-03-24 07:46:42 +03:00
|
|
|
num-bigint = "0.4.3"
|
|
|
|
num_cpus = "1.13.1"
|
2023-06-22 10:40:41 +03:00
|
|
|
once_cell = "1.18.0"
|
|
|
|
parking_lot = "0.12.1"
|
2023-06-22 16:37:35 +03:00
|
|
|
pretty_assertions = { version = "1.3", optional = true }
|
2023-03-24 07:46:42 +03:00
|
|
|
radix_fmt = "=1.0.0"
|
2023-06-22 10:40:41 +03:00
|
|
|
rayon = { version = "1.7.0", optional = true }
|
2023-03-24 07:46:42 +03:00
|
|
|
regex = "1.5.3"
|
|
|
|
rustc-hash = "1.1.0"
|
2023-10-13 09:07:00 +03:00
|
|
|
ryu-js = "1.0.0"
|
2023-03-24 07:46:42 +03:00
|
|
|
serde = { version = "1.0.118", features = ["derive"] }
|
|
|
|
serde_json = "1.0.61"
|
2023-06-22 10:40:41 +03:00
|
|
|
tracing = "0.1.37"
|
2023-03-24 07:46:42 +03:00
|
|
|
|
2023-12-01 23:08:13 +03:00
|
|
|
swc_atoms = { version = "0.6.5", path = "../swc_atoms" }
|
2024-02-08 04:51:17 +03:00
|
|
|
swc_common = { version = "0.33.17", path = "../swc_common" }
|
2024-02-06 05:12:03 +03:00
|
|
|
swc_config = { version = "0.1.11", path = "../swc_config", features = [
|
2024-01-24 05:02:45 +03:00
|
|
|
"sourcemap",
|
|
|
|
] }
|
2024-02-08 04:51:17 +03:00
|
|
|
swc_ecma_ast = { version = "0.112.2", path = "../swc_ecma_ast", features = [
|
2023-03-27 07:28:42 +03:00
|
|
|
"serde",
|
|
|
|
] }
|
2024-02-08 04:51:17 +03:00
|
|
|
swc_ecma_codegen = { version = "0.148.3", path = "../swc_ecma_codegen" }
|
|
|
|
swc_ecma_parser = { version = "0.143.3", path = "../swc_ecma_parser" }
|
2024-02-13 08:14:07 +03:00
|
|
|
swc_ecma_transforms_base = { version = "0.137.4", path = "../swc_ecma_transforms_base" }
|
2024-02-13 05:58:35 +03:00
|
|
|
swc_ecma_transforms_optimization = { version = "0.198.4", path = "../swc_ecma_transforms_optimization" }
|
2024-02-13 08:14:07 +03:00
|
|
|
swc_ecma_usage_analyzer = { version = "0.23.4", path = "../swc_ecma_usage_analyzer" }
|
|
|
|
swc_ecma_utils = { version = "0.127.4", path = "../swc_ecma_utils" }
|
2024-02-08 04:51:17 +03:00
|
|
|
swc_ecma_visit = { version = "0.98.2", path = "../swc_ecma_visit" }
|
|
|
|
swc_timer = { version = "0.21.18", path = "../swc_timer" }
|
2021-05-20 07:51:30 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-03-24 07:46:42 +03:00
|
|
|
ansi_term = "0.12.1"
|
|
|
|
anyhow = "1"
|
2023-06-22 10:40:41 +03:00
|
|
|
criterion = "0.5.1"
|
2023-06-22 16:37:35 +03:00
|
|
|
pretty_assertions = "1.3"
|
2023-03-24 07:46:42 +03:00
|
|
|
walkdir = "2"
|
|
|
|
|
2024-02-08 04:51:17 +03:00
|
|
|
swc_ecma_testing = { version = "0.22.19", path = "../swc_ecma_testing" }
|
2023-11-11 22:12:50 +03:00
|
|
|
swc_malloc = { version = "0.5.10", path = "../swc_malloc" }
|
2024-02-08 04:51:17 +03:00
|
|
|
testing = { version = "0.35.18", path = "../testing" }
|
2022-03-12 09:16:02 +03:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
harness = false
|
2023-03-24 07:46:42 +03:00
|
|
|
name = "full"
|