保障速度

This commit is contained in:
Tw93
2023-04-18 20:45:06 +08:00
parent 730d683a54
commit 777f6382e4

View File

@@ -30,9 +30,9 @@ default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
# Pay attention to the code size during optimization in order to generate smaller binary files.
[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
strip = true # Remove debug symbols
# [profile.release]
# panic = "abort" # Strip expensive panic clean-up logic
# codegen-units = 1 # Compile crates one after another so the compiler can optimize better
# lto = true # Enables link to optimizations
# opt-level = "s" # Optimize for binary size
# strip = true # Remove debug symbols