添加 release profile 优化配置
- opt-level = "z": 优化二进制体积 - lto = true: 启用链接时优化 - codegen-units = 1: 单代码生成单元以换取更优优化 - panic = "abort": 移除 panic 展开开销 - strip = true: 去除调试符号 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
401556c24e
commit
d5010024d4
@ -21,6 +21,14 @@ getrandom = { version = "0.2", features = ["js"] }
|
||||
web-sys = { version = "0.3", features = ["Document", "Window", "HtmlDocument", "Storage", "Element"] }
|
||||
wasm-bindgen = "0.2"
|
||||
|
||||
[profile.release]
|
||||
debug = false
|
||||
opt-level = "z"
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
strip = true
|
||||
|
||||
[features]
|
||||
default = ["web", "server"]
|
||||
web = ["dioxus/web"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user