-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCargo.toml
More file actions
83 lines (72 loc) · 2.12 KB
/
Cargo.toml
File metadata and controls
83 lines (72 loc) · 2.12 KB
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
[workspace]
resolver = "2"
members = ["crates/stylex-*"]
[workspace.package]
edition = "2024"
license = "MIT"
repository = "https://github.com/Dwlad90/stylex-swc-plugin.git"
rust-version = "1.93.1"
version = "0.15.5-rc.1"
# Set the options for dependencies (not crates in the workspace), this mostly impacts cold builds
[profile.dev.package."*"]
opt-level = 1
# Set the settings for build scripts and proc-macros.
[profile.dev.build-override]
opt-level = 3
[profile.bench]
debug = true
lto = true
[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"
[workspace.dependencies]
anyhow = "1.0.102"
base62 = { version = "2.2.4" }
color-backtrace = { version = "0.7.2" }
colored = { version = "3.1.1" }
cssparser = { version = "0.37.0" }
ctor = "0.8.0"
derive_more = { version = "2.1.1", features = ["display"] }
env_logger = "0.11.10"
fancy-regex = "0.17.0"
glob = { version = "0.3.3" }
indexmap = "2.13.0"
insta = { version = "1.47.2" }
lazy_static = "1.5.0"
log = "0.4.29"
md5 = { version = "0.8.0" }
murmur2 = { version = "0.1.0" }
node-resolve = { version = "2.2.0" }
once_cell = { version = "1.21.4" }
path-clean = { version = "1.0.1" }
phf = { version = "0.13.1" }
pretty_env_logger = "0.5.0"
radix_fmt = { version = "1.0.0" }
rust_decimal = { version = "1.39.0", features = ["serde"] }
rustc-hash = "2.1.2"
serde = "1.0.228"
serde_json = "1.0.149"
serde_plain = "1.0.2"
serial_test = { version = "3.4.0" }
swc_compiler_base = { version = "51.0.0" }
swc_config = { version = "4.0.0" }
swc_core = { version = "60.0.0" }
swc_ecma_parser = { version = "36.0.0" }
testing = "21.0.0"
thiserror = "2.0.18"
# convert_case = { version = "0.11.0" }
# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
# cargo build-wasm32 generates wasm32-unknown-unknown binary.
# wasm-pack build --target web --dev -d dist --out-name index
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(coverage_nightly)',
] }