chore: build with optimization in debug builds

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-07-22 02:56:25 +02:00
committed by Schmarni
parent aff7bd7d4b
commit 515807e56a
2 changed files with 9 additions and 2 deletions

View File

@@ -25,3 +25,11 @@ openxr = "0.19.0"
thiserror = "2.0.3"
wgpu = "24.0.1"
wgpu-hal = "24.0.2"
# Enable a small amount of optimization in the dev profile.
[profile.dev]
opt-level = 1
# Enable a large amount of optimization in the dev profile for dependencies.
[profile.dev.package."*"]
opt-level = 3

View File

@@ -28,14 +28,13 @@ bevy.workspace = true
# all other dependencies are placed under this since on wasm, this crate is completely empty
[target.'cfg(not(target_family = "wasm"))'.dependencies]
bevy_mod_xr.workspace = true
openxr.workspace = true
openxr = { workspace = true }
thiserror.workspace = true
wgpu.workspace = true
wgpu-hal.workspace = true
ash = { version = "0.38", optional = true }
[target.'cfg(target_family = "unix")'.dependencies]
openxr = { workspace = true, features = ["mint"] }
wgpu = { workspace = true, features = ["vulkan-portability"] }
[target.'cfg(target_family = "windows")'.dependencies]