-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
36 lines (29 loc) · 877 Bytes
/
Cargo.toml
File metadata and controls
36 lines (29 loc) · 877 Bytes
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
[workspace]
members = ["packages/swc"]
resolver = "2"
[workspace.package]
authors = []
edition = "2021"
homepage = ""
license = ""
repository = "https://gitlab.sheincorp.cn/npmjs/shein-lego/swc-plugins"
rust-version = "1.82"
[workspace.dependencies]
heck = { version = "0.5" }
regex = { version = "1.12.2" }
serde = { version = "1.0.228" }
serde_json = { version = "1.0.149" }
swc_core = { version = "=54.0.0" }
# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
# cargo build-wasm32 generates wasm32-unknown-unknown binary.
[profile.release]
# This removes more dead code
codegen-units = 1
lto = true
# Optimize for size
opt-level = "s"
# Optimize for performance, this is default so you don't need to specify it
# opt-level = "z"
# Strip debug symbols
# strip = "symbols