Skip to content

Commit 776fb93

Browse files
committed
optimize bundle size
1 parent 483d6b2 commit 776fb93

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.cargo/config.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[unstable]
2+
build-std = ["std", "panic_abort", "core", "alloc"]
3+
build-std-features = ["panic_immediate_abort"]
4+
5+
[build]
6+
rustflags = [
7+
"-Clto",
8+
"-Zvirtual-function-elimination",
9+
"-Zlocation-detail=none"
10+
]
11+
12+
[profile.release]
13+
opt-level = "z"
14+
debug = false
15+
lto = true
16+
codegen-units = 1
17+
panic = "abort"
18+
strip = true
19+
incremental = false

0 commit comments

Comments
 (0)