添加编译优化配置
This commit is contained in:
parent
7a6ac2f09d
commit
d3c1549522
19
Cargo.toml
19
Cargo.toml
@ -6,6 +6,25 @@ edition = "2021"
|
||||
[workspace]
|
||||
members = [".", "server", "domain", "i18n","library", "macro"]
|
||||
|
||||
# https://doc.rust-lang.org/cargo/reference/profiles.html
|
||||
[prifile.release]
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
opt-level = "z"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 0
|
||||
debug = true
|
||||
split-debuginfo = '...' # Platform-specific.
|
||||
strip = "none"
|
||||
debug-assertions = true
|
||||
overflow-checks = true
|
||||
lto = false
|
||||
panic = 'unwind'
|
||||
incremental = true
|
||||
codegen-units = 256
|
||||
rpath = false
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
|
Loading…
Reference in New Issue
Block a user