-
-
Notifications
You must be signed in to change notification settings - Fork 501
/
Cargo.toml
106 lines (95 loc) · 4.02 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
cargo-features = ["trim-paths"]
[workspace]
members = ["crates/*"]
resolver = "2" # See https://doc.rust-lang.org/cargo/reference/resolver.html#feature-resolver-version-2
[workspace.package]
authors = ["Rspack Teams"]
categories = ["bundler", "development-tools", "web-programming"]
documentation = "https://rspack.dev/"
homepage = "https://rspack.dev/"
license = "MIT"
repository = "https://github.com/web-infra-dev/rspack"
[workspace.dependencies]
anyhow = { version = "1.0.81", features = ["backtrace"] }
anymap = { version = "=1.0.0-beta.2" }
async-recursion = { version = "1.1.0" }
async-scoped = { version = "0.9.0" }
async-trait = { version = "0.1.79" }
bitflags = { version = "2.5.0" }
camino = { version = "1.1.8" }
concat-string = "1.0.1"
css-module-lexer = "0.0.14"
dashmap = { version = "5.5.3" }
derivative = { version = "2.2.0" }
futures = { version = "0.3.30" }
glob = { version = "0.3.1" }
hashlink = { version = "0.9.0" }
heck = { version = "0.5.0" }
hex = { version = "0.4.3" }
indexmap = { version = "2.2.6" }
indoc = { version = "2.0.5" }
itertools = { version = "0.13.0" }
json = { version = "0.12.4" }
lightningcss = { version = "1.0.0-alpha.58" }
linked_hash_set = { version = "0.1.4" }
mimalloc = { version = "0.1.43" }
mime_guess = { version = "2.0.4" }
once_cell = { version = "1.19.0" }
parcel_sourcemap = "2.1.1"
paste = { version = "1.0" }
path-clean = { version = "1.0.1" }
pathdiff = { version = "0.2.1" }
proc-macro2 = { version = "1.0.79" }
quote = { version = "1.0.35" }
rayon = { version = "1.10.0" }
regex = { version = "1.10.4" }
rspack_sources = { version = "=0.2.17" }
rustc-hash = { version = "1.1.0" }
schemars = { version = "0.8.16" }
serde = { version = "1.0.197" }
serde_json = { version = "1.0.115" }
stacker = { version = "0.1.15" }
sugar_path = { version = "1.2.0", features = ["cached_current_dir"] }
syn = { version = "2.0.58" }
tokio = { version = "1.37.0" }
tracing = { version = "0.1.40" }
tracing-subscriber = { version = "0.3.18" }
unicase = { version = "2.7.0" }
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 = { package = "napi-h", version = "=2.16.1" }
napi-build = { version = "2" }
napi-derive = { version = "2" }
# Must be pinned with the same swc versions
#rkyv = { version = "=0.7.44" } # synced with swc wasm plugin
swc_config = { version = "=0.1.15" }
swc_core = { version = "=0.100.7", default-features = false }
swc_ecma_minifier = { version = "=0.201.0", default-features = false }
swc_error_reporters = { version = "=0.21.0" }
swc_html = { version = "=0.146.1" }
swc_html_minifier = { version = "=0.143.1", default-features = false }
swc_node_comments = { version = "=0.24.0" }
[workspace.metadata.release]
rate-limit = { existing-packages = 70, new-packages = 70 }
[profile.dev]
codegen-units = 16
debug = 2 # debug build will cause runtime panic if codegen-unints is default
incremental = true
[profile.release]
codegen-units = 1
debug = false
# Performs “thin” LTO. This is similar to “fat”, but takes substantially less time to run while still achieving performance gains similar to “fat”.
lto = "thin"
opt-level = 3
strip = true
[profile.release-prod]
inherits = "release"
# Performs “fat” LTO which attempts to perform optimizations across all crates within the dependency graph.
lto = "fat"
[profile.release-debug]
debug = true
inherits = "release"
strip = false