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-11-01 10:35:29 +03:00
|
|
|
version = "4.0.0"
|
2021-09-20 09:25:51 +03:00
|
|
|
|
2024-07-10 09:20:27 +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]
|
2024-04-29 03:54:45 +03:00
|
|
|
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 }
|
2024-07-10 09:20:27 +03:00
|
|
|
phf = { workspace = true }
|
2024-04-29 03:54:45 +03:00
|
|
|
pretty_assertions = { workspace = true, optional = true }
|
2024-07-15 13:54:00 +03:00
|
|
|
radix_fmt = { workspace = true }
|
2024-04-29 03:54:45 +03:00
|
|
|
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 }
|
2023-03-24 07:46:42 +03:00
|
|
|
|
2024-07-31 11:03:04 +03:00
|
|
|
|
2024-10-12 10:20:07 +03:00
|
|
|
swc_allocator = { version = "1.0.0", path = "../swc_allocator", default-features = false }
|
|
|
|
swc_atoms = { version = "2.0.0", path = "../swc_atoms" }
|
2024-11-01 10:35:29 +03:00
|
|
|
swc_common = { version = "3.0.0", path = "../swc_common" }
|
2024-10-12 10:20:07 +03:00
|
|
|
swc_config = { version = "1.0.0", path = "../swc_config", features = [
|
2024-01-24 05:02:45 +03:00
|
|
|
"sourcemap",
|
|
|
|
] }
|
2024-11-01 10:35:29 +03:00
|
|
|
swc_ecma_ast = { version = "3.0.0", path = "../swc_ecma_ast", features = [
|
2023-03-27 07:28:42 +03:00
|
|
|
"serde",
|
|
|
|
] }
|
2024-11-01 10:35:29 +03:00
|
|
|
swc_ecma_codegen = { version = "3.0.0", path = "../swc_ecma_codegen" }
|
|
|
|
swc_ecma_parser = { version = "4.0.0", path = "../swc_ecma_parser" }
|
2024-11-02 16:54:02 +03:00
|
|
|
swc_ecma_transforms_base = { version = "4.0.1", path = "../swc_ecma_transforms_base" }
|
2024-11-01 10:35:29 +03:00
|
|
|
swc_ecma_transforms_optimization = { version = "4.0.0", path = "../swc_ecma_transforms_optimization" }
|
|
|
|
swc_ecma_usage_analyzer = { version = "4.0.0", path = "../swc_ecma_usage_analyzer" }
|
|
|
|
swc_ecma_utils = { version = "4.0.0", path = "../swc_ecma_utils" }
|
|
|
|
swc_ecma_visit = { version = "3.0.0", path = "../swc_ecma_visit" }
|
2024-10-12 10:20:07 +03:00
|
|
|
swc_timer = { version = "1.0.0", path = "../swc_timer" }
|
2021-05-20 07:51:30 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-04-29 03:54:45 +03:00
|
|
|
ansi_term = { workspace = true }
|
|
|
|
anyhow = { workspace = true }
|
|
|
|
criterion = { workspace = true }
|
|
|
|
pretty_assertions = { workspace = true }
|
|
|
|
walkdir = { workspace = true }
|
2023-03-24 07:46:42 +03:00
|
|
|
|
2024-07-10 09:20:27 +03:00
|
|
|
codspeed-criterion-compat = { workspace = true }
|
2024-10-12 10:20:07 +03:00
|
|
|
swc_allocator = { version = "1.0.0", path = "../swc_allocator" }
|
2024-11-01 10:35:29 +03:00
|
|
|
swc_ecma_testing = { version = "3.0.0", path = "../swc_ecma_testing" }
|
2024-10-12 10:20:07 +03:00
|
|
|
swc_malloc = { version = "1.0.0", path = "../swc_malloc" }
|
2024-11-01 10:35:29 +03:00
|
|
|
testing = { version = "3.0.0", path = "../testing" }
|
2022-03-12 09:16:02 +03:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
harness = false
|
2024-07-02 04:17:55 +03:00
|
|
|
name = "full"
|