-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
102 lines (97 loc) · 3.88 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
[workspace]
members = [
"crates/.rspack_crates/*",
"crates/binding_options",
"crates/node_binding",
"crates/swc_compiler",
"crates/loader_compilation",
"crates/loader_barrel",
"crates/plugin_manifest",
"crates/swc_env_replacement",
"crates/swc_keep_export",
"crates/swc_remove_export",
"crates/swc_optimize_barrel",
"crates/plugin_specilize_module_name",
"crates/swc_change_package_import",
]
resolver = "2"
[workspace.dependencies]
anyhow = { version = "1.0.80", features = ["backtrace"] }
async-recursion = { version = "1.0.5" }
async-scoped = { version = "0.9.0" }
async-trait = { version = "0.1.77" }
backtrace = "0.3"
better_scoped_tls = { version = "0.1.1" }
bitflags = { version = "2.4.2" }
colored = { version = "2.1.0" }
concat-string = "1.0.1"
dashmap = { version = "5.5.3" }
derivative = { version = "2.2.0" }
derive_builder = { version = "0.20.0" }
futures = { version = "0.3.30" }
futures-util = { version = "0.3.30" }
glob = { version = "0.3.1" }
hashlink = { version = "0.9.0" }
indexmap = { version = "2.2.5" }
insta = { version = "1.36.1" }
itertools = { version = "0.12.1" }
json = { version = "0.12.4" }
linked_hash_set = { version = "0.1.4" }
mimalloc-rust = { version = "0.2" }
mime_guess = { version = "2.0.4" }
once_cell = { version = "1.19.0" }
paste = { version = "1.0" }
path-clean = { version = "1.0.1" }
pathdiff = { version = "0.2.1" }
preset_env_base = { version = "0.4.11" }
proc-macro2 = { version = "1.0.78" }
quote = { version = "1.0.35" }
rayon = { version = "1.9.0" }
regex = { version = "1.10.3" }
rkyv = { version = "=0.7.42" }
rspack_sources = { version = "=0.2.12" }
rustc-hash = { version = "1.1.0" }
schemars = { version = "0.8.16" }
serde = { version = "1.0.197" }
serde_json = { version = "1.0.114" }
similar = { version = "2.4.0" }
sugar_path = { version = "0.0.12" }
syn = { version = "2.0.52" }
testing_macros = { version = "0.2.12" }
tokio = { version = "1.36.0" }
tracing = { version = "0.1.40" }
tracing-subscriber = { version = "0.3.18" }
url = { version = "2.5.0" }
urlencoding = { version = "2.1.3" }
ustr = { package = "ustr-fxhash", version = "1.0.0" }
xxhash-rust = { version = "0.8.10" }
# Pinned
napi = { version = "=2.16.0" }
napi-build = { version = "=2.1.2" }
napi-derive = { version = "=2.16.0" }
napi-sys = { version = "=2.3.0" }
tikv-jemallocator = { version = "=0.5.4", features = ["disable_initial_exec_tls"] }
# Must be pinned with the same swc versions
styled_components = { version = "=0.96.3" }
swc_config = { version = "=0.1.10" }
swc_core = { version = "=0.89.6", default-features = false }
swc_css = { version = "=0.157.32" }
swc_ecma_minifier = { version = "=0.191.7", default-features = false }
swc_emotion = { version = "=0.72.2" }
swc_error_reporters = { version = "=0.17.14" }
swc_html = { version = "=0.136.7" }
swc_html_minifier = { version = "=0.133.7" }
swc_node_comments = { version = "=0.20.14" }
testing = { version = "^0.35.16" }
[profile.dev]
codegen-units = 16 # debug build will cause runtime panic if codegen-unints is default
debug = 2
incremental = true
panic = "abort"
[profile.release]
codegen-units = 1
debug = false
lto = "thin" # Performs “thin” LTO. This is similar to “fat”, but takes substantially less time to run while still achieving performance gains similar to “fat”.
opt-level = 3
panic = "abort"
strip = true