/
Cargo.toml
149 lines (134 loc) · 4.6 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "Speedy web compiler"
documentation = "https://rustdoc.swc.rs/swc/"
edition = "2021"
include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "swc"
repository = "https://github.com/swc-project/swc.git"
version = "0.255.27"
[lib]
bench = false
name = "swc"
[features]
# TODO: This may need reorganization with swc_core - swc_core allows to optionally enable
# each features (minifier, transforms..) but swc includes all of them.
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-bytecheck = [
"swc_plugin_runner/rkyv-bytecheck-impl",
"swc_plugin_proxy/plugin-bytecheck-rt",
]
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",
]
[dependencies]
ahash = "0.7.4"
anyhow = "1"
base64 = "0.13.0"
dashmap = "5.1.0"
either = "1"
indexmap = { version = "1.6.1", features = ["serde"] }
jsonc-parser = { version = "0.21.0", features = ["serde"] }
lru = "0.7.1"
once_cell = "1.10.0"
parking_lot = "0.12.0"
pathdiff = "0.2.0"
regex = "1"
rustc-hash = "1.1.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sourcemap = "6"
tracing = "0.1.32"
url = "2.3.1"
swc_atoms = { version = "0.4.39", path = "../swc_atoms" }
swc_cached = { version = "0.3.15", path = "../swc_cached" }
swc_common = { version = "0.29.39", path = "../swc_common", features = [
"sourcemap",
"parking_lot",
] }
swc_config = { version = "0.1.5", path = "../swc_config" }
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "0.135.11", path = "../swc_ecma_codegen" }
swc_ecma_ext_transforms = { version = "0.99.11", path = "../swc_ecma_ext_transforms" }
swc_ecma_lints = { version = "0.77.16", path = "../swc_ecma_lints" }
swc_ecma_loader = { version = "0.41.41", path = "../swc_ecma_loader", features = [
"cache",
"node",
"tsc",
] }
swc_ecma_minifier = { version = "0.175.23", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "0.130.10", path = "../swc_ecma_parser" }
swc_ecma_preset_env = { version = "0.189.21", path = "../swc_ecma_preset_env" }
swc_ecma_transforms = { version = "0.212.21", path = "../swc_ecma_transforms", features = [
"compat",
"module",
"optimization",
"proposal",
"react",
"typescript",
] }
swc_ecma_transforms_base = { version = "0.122.16", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_compat = { version = "0.148.18", path = "../swc_ecma_transforms_compat" }
swc_ecma_transforms_optimization = { version = "0.181.21", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "0.113.11", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.86.6", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "0.13.40", path = "../swc_error_reporters" }
swc_node_comments = { version = "0.16.39", path = "../swc_node_comments" }
swc_plugin_proxy = { version = "0.29.5", path = "../swc_plugin_proxy", optional = true }
swc_plugin_runner = { version = "0.91.10", path = "../swc_plugin_runner", optional = true, default-features = false }
swc_timer = { version = "0.17.42", path = "../swc_timer" }
swc_visit = { version = "0.5.5", path = "../swc_visit" }
[dependencies.napi-derive]
default-features = false
features = ["type-def"]
optional = true
version = "2.0.0"
[dependencies.napi]
default-features = false
features = ["napi3"]
optional = true
version = "2.0.0"
[dev-dependencies]
ansi_term = "0.12"
criterion = "0.3"
rayon = "1.5.1"
swc_ecma_ast = { version = "0.100.5", path = "../swc_ecma_ast", features = [
"serde-impl",
] }
swc_ecma_lints = { version = "0.77.16", path = "../swc_ecma_lints", features = [
"non_critical_lints",
] }
swc_ecma_testing = { version = "0.20.7", path = "../swc_ecma_testing" }
swc_node_base = { version = "0.5.8", path = "../swc_node_base" }
testing = { version = "0.31.42", path = "../testing" }
walkdir = "2"
[[example]]
name = "transform"
[[bench]]
harness = false
name = "bugs"
[[bench]]
harness = false
name = "minify"
[[bench]]
harness = false
name = "typescript"