2023-09-28 12:10:45 +00:00
|
|
|
[workspace]
|
|
|
|
members = [
|
2024-03-04 21:16:31 +00:00
|
|
|
"crates/*",
|
2024-07-20 10:36:59 +00:00
|
|
|
"examples/*",
|
2024-03-04 21:16:31 +00:00
|
|
|
"testing/bevy_example/",
|
2023-09-28 12:10:45 +00:00
|
|
|
]
|
2023-11-13 13:36:42 +00:00
|
|
|
resolver = "2"
|
2023-09-28 12:10:45 +00:00
|
|
|
|
2024-01-19 21:23:47 +00:00
|
|
|
[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"
|
|
|
|
|
2023-11-13 15:16:31 +00:00
|
|
|
#### --------------------Dev/ debug-------------------------------
|
2024-03-04 21:16:31 +00:00
|
|
|
# Enable a small amount of optimization in debug mode
|
|
|
|
[profile.dev]
|
|
|
|
opt-level = 1
|
|
|
|
|
2023-11-13 15:16:31 +00:00
|
|
|
# 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"
|