# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "swc"
version = "0.263.20"
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
include = [
    "Cargo.toml",
    "src/**/*.rs",
]
description = "Speedy web compiler"
documentation = "https://rustdoc.swc.rs/swc/"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/swc-project/swc.git"
resolver = "1"

[lib]
name = "swc"
bench = false

[[example]]
name = "transform"

[[bench]]
name = "bugs"
harness = false

[[bench]]
name = "minify"
harness = false

[[bench]]
name = "typescript"
harness = false

[dependencies.ahash]
version = "0.8.3"

[dependencies.anyhow]
version = "1"

[dependencies.base64]
version = "0.13.0"

[dependencies.dashmap]
version = "5.1.0"

[dependencies.either]
version = "1"

[dependencies.indexmap]
version = "1.6.1"
features = ["serde"]

[dependencies.jsonc-parser]
version = "0.21.0"
features = ["serde"]

[dependencies.lru]
version = "0.7.1"

[dependencies.napi]
version = "2.0.0"
features = ["napi3"]
optional = true
default-features = false

[dependencies.napi-derive]
version = "2.0.0"
features = ["type-def"]
optional = true
default-features = false

[dependencies.once_cell]
version = "1.18.0"

[dependencies.parking_lot]
version = "0.12.1"

[dependencies.pathdiff]
version = "0.2.0"

[dependencies.regex]
version = "1"

[dependencies.rustc-hash]
version = "1.1.0"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sourcemap]
version = "6.2"

[dependencies.swc_atoms]
version = "0.5.6"

[dependencies.swc_cached]
version = "0.3.16"

[dependencies.swc_common]
version = "0.31.14"
features = [
    "sourcemap",
    "parking_lot",
]

[dependencies.swc_config]
version = "0.1.6"

[dependencies.swc_ecma_ast]
version = "0.106.4"

[dependencies.swc_ecma_codegen]
version = "0.141.8"

[dependencies.swc_ecma_ext_transforms]
version = "0.105.7"

[dependencies.swc_ecma_lints]
version = "0.84.11"

[dependencies.swc_ecma_loader]
version = "0.43.16"
features = [
    "cache",
    "node",
    "tsc",
]

[dependencies.swc_ecma_minifier]
version = "0.183.18"

[dependencies.swc_ecma_parser]
version = "0.136.5"

[dependencies.swc_ecma_preset_env]
version = "0.197.17"

[dependencies.swc_ecma_transforms]
version = "0.220.16"
features = [
    "compat",
    "module",
    "optimization",
    "proposal",
    "react",
    "typescript",
]

[dependencies.swc_ecma_transforms_base]
version = "0.129.11"

[dependencies.swc_ecma_transforms_compat]
version = "0.155.14"

[dependencies.swc_ecma_transforms_optimization]
version = "0.189.16"

[dependencies.swc_ecma_utils]
version = "0.119.7"

[dependencies.swc_ecma_visit]
version = "0.92.3"

[dependencies.swc_error_reporters]
version = "0.15.14"

[dependencies.swc_node_comments]
version = "0.18.14"

[dependencies.swc_plugin_proxy]
version = "0.35.3"
optional = true

[dependencies.swc_plugin_runner]
version = "0.97.5"
optional = true
default-features = false

[dependencies.swc_timer]
version = "0.19.17"

[dependencies.swc_visit]
version = "0.5.7"

[dependencies.tracing]
version = "0.1.37"

[dependencies.url]
version = "2.3.1"

[dev-dependencies.ansi_term]
version = "0.12"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.rayon]
version = "1.7.0"

[dev-dependencies.swc_ecma_ast]
version = "0.106.4"
features = ["serde-impl"]

[dev-dependencies.swc_ecma_lints]
version = "0.84.11"
features = ["non_critical_lints"]

[dev-dependencies.swc_ecma_testing]
version = "0.20.11"

[dev-dependencies.swc_node_base]
version = "0.5.8"

[dev-dependencies.testing]
version = "0.33.17"

[dev-dependencies.walkdir]
version = "2"

[features]
concurrent = [
    "swc_ecma_transforms/concurrent",
    "swc_common/concurrent",
    "swc_ecma_minifier/concurrent",
]
debug = ["swc_ecma_visit/debug"]
default = ["es3"]
es3 = []
node = [
    "napi",
    "napi-derive",
]
plugin = [
    "swc_plugin_runner/ecma",
    "swc_plugin_runner/rkyv-impl",
    "swc_plugin_proxy/plugin-rt",
]
plugin_transform_host_js = ["swc_plugin_runner/plugin_transform_host_js"]
plugin_transform_host_native = ["swc_plugin_runner/plugin_transform_host_native"]
plugin_transform_schema_v1 = [
    "swc_common/plugin_transform_schema_v1",
    "swc_plugin_runner/plugin_transform_schema_v1",
]
plugin_transform_schema_vtest = [
    "swc_common/plugin_transform_schema_vtest",
    "swc_plugin_runner/plugin_transform_schema_vtest",
]
