移除不需要的依赖
This commit is contained in:
@@ -41,3 +41,15 @@ license = "UNLICENSED"
|
||||
[workspace.dependencies]
|
||||
log = "0.4"
|
||||
spacetimedb = "2.1.0"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 0 # 默认 0,有人手滑改 1/2 会慢
|
||||
debug = 1 # line-tables-only 比 full 快 30 %
|
||||
codegen-units = 16 # 多单元并行 CodeGen
|
||||
lto = false # dev 别开 LTO
|
||||
incremental = true
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3 # 最大优化等级
|
||||
lto = "thin" # 启用 Thin LTO,平衡编译时间和性能
|
||||
codegen-units = 1 # 减少并行代码生成单元,提升优化但增加编译时间
|
||||
Reference in New Issue
Block a user