31 lines
727 B
TOML
31 lines
727 B
TOML
[workspace]
|
|
members = [
|
|
"crates/*",
|
|
"examples/*",
|
|
"testing/bevy_example/",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.lints.clippy]
|
|
type_complexity = "allow"
|
|
doc_markdown = "warn"
|
|
manual_let_else = "warn"
|
|
undocumented_unsafe_blocks = "warn"
|
|
redundant_else = "warn"
|
|
match_same_arms = "warn"
|
|
semicolon_if_nothing_returned = "warn"
|
|
|
|
#### --------------------Dev/ debug-------------------------------
|
|
# 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
|
|
|
|
#### --------------------Production/ release-------------------------------
|
|
[profile.release]
|
|
strip = "debuginfo"
|
|
lto = "thin"
|