2021-05-20 07:51:30 +03:00
|
|
|
[package]
|
2022-08-11 12:52:44 +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/"
|
2022-08-11 12:52:44 +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"
|
2022-10-26 07:40:31 +03:00
|
|
|
version = "0.159.49"
|
2021-09-20 09:25:51 +03:00
|
|
|
|
2022-08-11 12:52:44 +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"]
|
2022-04-24 18:27:51 +03:00
|
|
|
trace-ast = []
|
2021-05-28 13:44:03 +03:00
|
|
|
|
2021-05-20 07:51:30 +03:00
|
|
|
[dependencies]
|
2022-08-11 12:52:44 +03:00
|
|
|
ahash = "0.7.6"
|
|
|
|
arrayvec = "0.7.2"
|
|
|
|
backtrace = { version = "0.3.61", optional = true }
|
2022-10-06 04:36:13 +03:00
|
|
|
indexmap = "1.6.1"
|
2022-08-11 12:52:44 +03:00
|
|
|
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 }
|
|
|
|
rayon = { version = "1.5.1", optional = true }
|
|
|
|
regex = "1.5.3"
|
|
|
|
retain_mut = "0.1.2"
|
|
|
|
rustc-hash = "1.1.0"
|
2022-09-30 10:57:15 +03:00
|
|
|
serde = { version = "1.0.118", features = ["derive"] }
|
2022-08-11 12:52:44 +03:00
|
|
|
serde_json = "1.0.61"
|
2022-10-19 07:00:51 +03:00
|
|
|
swc_atoms = { version = "0.4.23", path = "../swc_atoms" }
|
2022-10-11 14:23:16 +03:00
|
|
|
swc_cached = { version = "0.3.15", path = "../swc_cached" }
|
2022-10-19 07:00:51 +03:00
|
|
|
swc_common = { version = "0.29.10", path = "../swc_common" }
|
2022-10-11 14:23:16 +03:00
|
|
|
swc_config = { version = "0.1.4", path = "../swc_config" }
|
2022-10-21 12:11:29 +03:00
|
|
|
swc_ecma_ast = { version = "0.94.14", path = "../swc_ecma_ast" }
|
2022-10-24 06:58:37 +03:00
|
|
|
swc_ecma_codegen = { version = "0.127.24", path = "../swc_ecma_codegen" }
|
|
|
|
swc_ecma_parser = { version = "0.122.20", path = "../swc_ecma_parser" }
|
|
|
|
swc_ecma_transforms_base = { version = "0.111.34", path = "../swc_ecma_transforms_base" }
|
|
|
|
swc_ecma_transforms_optimization = { version = "0.167.27", path = "../swc_ecma_transforms_optimization" }
|
|
|
|
swc_ecma_utils = { version = "0.105.25", path = "../swc_ecma_utils" }
|
2022-10-21 12:11:29 +03:00
|
|
|
swc_ecma_visit = { version = "0.80.14", path = "../swc_ecma_visit" }
|
2022-10-19 07:00:51 +03:00
|
|
|
swc_timer = { version = "0.17.10", path = "../swc_timer" }
|
2022-08-11 12:52:44 +03:00
|
|
|
tracing = "0.1.32"
|
2021-05-20 07:51:30 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-08-11 12:52:44 +03:00
|
|
|
ansi_term = "0.12.1"
|
|
|
|
anyhow = "1"
|
|
|
|
criterion = "0.3.5"
|
2022-03-11 17:00:55 +03:00
|
|
|
pretty_assertions = "1.1"
|
2022-10-10 16:09:51 +03:00
|
|
|
swc_ecma_testing = { version = "0.20.7", path = "../swc_ecma_testing" }
|
2022-10-24 06:58:37 +03:00
|
|
|
swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
|
2022-10-19 07:00:51 +03:00
|
|
|
testing = { version = "0.31.10", path = "../testing" }
|
2022-08-11 12:52:44 +03:00
|
|
|
walkdir = "2"
|
2022-03-12 09:16:02 +03:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
harness = false
|
2022-08-11 12:52:44 +03:00
|
|
|
name = "full"
|