Update Cargo.toml
This commit is contained in:
23
Cargo.toml
23
Cargo.toml
@@ -1,3 +1,26 @@
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
members = [ "engine/prefabs","game/main"]
|
||||
|
||||
# Enable a small amount of optimization in debug mode
|
||||
[profile.dev]
|
||||
opt-level = 1
|
||||
|
||||
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 3
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
lto = "thin"
|
||||
|
||||
|
||||
# Optimize for build time in CI.
|
||||
[profile.ci]
|
||||
inherits = "dev"
|
||||
opt-level = 0
|
||||
debug = "line-tables-only"
|
||||
codegen-units = 4
|
||||
|
||||
[profile.ci.package."*"]
|
||||
opt-level = 0
|
||||
Reference in New Issue
Block a user