Cargo Features

[dependencies]
swc_ecma_minifier = { version = "0.192.23", default-features = false, features = ["concurrent", "debug", "extra-serde", "serde-impl", "trace-ast", "pretty_assertions"] }
concurrent = rayon

This enables global concurrent mode

Enables rayon of indexmap, concurrent of swc_common, concurrent-renamer of swc_ecma_transforms_base, concurrent of swc_ecma_transforms_optimization

default = serde-impl

The serde-impl feature is set by default whenever swc_ecma_minifier is added without default-features = false somewhere in the dependency tree.

debug = backtrace

Enables debug of swc_ecma_transforms_optimization

extra-serde = serde-impl

Implement serialize/deserialize for more types

Enables serde-impl of swc_ecma_ast

serde-impl default extra-serde?
trace-ast

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

backtrace debug?
pretty_assertions implicit feature

Enables pretty_assertions

pretty_assertions:

Overwrite assert_eq! and assert_ne! with drop-in replacements, adding colorful diffs

rayon concurrent?