swc/crates/swc_ecma_minifier/Cargo.toml

84 lines
2.9 KiB
TOML
Raw Normal View History

[package]
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/"
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"
2023-07-20 05:37:25 +03:00
version = "0.184.17"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lib]
bench = false
[features]
# This enables global concurrent mode
2022-08-11 12:52:44 +03:00
concurrent = [
"swc_common/concurrent",
"swc_ecma_transforms_base/concurrent-renamer",
"swc_ecma_transforms_optimization/concurrent",
2022-08-11 12:52:44 +03:00
"rayon",
"indexmap/rayon",
]
debug = ["backtrace", "swc_ecma_transforms_optimization/debug"]
default = ["serde-impl"]
# Implement serialize/deserialize for more types
extra-serde = ["swc_ecma_ast/serde-impl", "serde-impl"]
serde-impl = []
trace-ast = []
[dependencies]
2023-06-22 10:40:41 +03:00
ahash = "0.8.3"
arrayvec = "0.7.2"
backtrace = { version = "0.3.61", optional = true }
2023-06-22 16:37:35 +03:00
indexmap = "1.9.3"
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 }
radix_fmt = "=1.0.0"
2023-06-22 10:40:41 +03:00
rayon = { version = "1.7.0", 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"
2023-06-22 10:40:41 +03:00
tracing = "0.1.37"
2023-07-05 06:52:51 +03:00
swc_atoms = { version = "0.5.7", path = "../swc_atoms" }
2023-06-22 16:40:52 +03:00
swc_cached = { version = "0.3.17", path = "../swc_cached" }
2023-07-05 06:52:51 +03:00
swc_common = { version = "0.31.17", path = "../swc_common" }
2023-06-22 16:40:52 +03:00
swc_config = { version = "0.1.7", path = "../swc_config" }
2023-07-05 06:52:51 +03:00
swc_ecma_ast = { version = "0.107.1", path = "../swc_ecma_ast", features = [
"serde",
] }
2023-07-13 05:09:23 +03:00
swc_ecma_codegen = { version = "0.142.3", path = "../swc_ecma_codegen" }
swc_ecma_parser = { version = "0.137.3", path = "../swc_ecma_parser" }
2023-07-18 07:13:08 +03:00
swc_ecma_transforms_base = { version = "0.130.4", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_optimization = { version = "0.190.10", path = "../swc_ecma_transforms_optimization" }
2023-07-14 23:56:32 +03:00
swc_ecma_usage_analyzer = { version = "0.16.5", path = "../swc_ecma_usage_analyzer" }
2023-07-13 05:09:23 +03:00
swc_ecma_utils = { version = "0.120.3", path = "../swc_ecma_utils" }
2023-07-05 06:52:51 +03:00
swc_ecma_visit = { version = "0.93.1", path = "../swc_ecma_visit" }
swc_timer = { version = "0.19.20", path = "../swc_timer" }
[dev-dependencies]
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"
walkdir = "2"
2023-07-05 06:52:51 +03:00
swc_ecma_testing = { version = "0.20.14", path = "../swc_ecma_testing" }
swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
2023-07-05 06:52:51 +03:00
testing = { version = "0.33.20", path = "../testing" }
[[bench]]
harness = false
name = "full"