From 515807e56af964863cbb2222b1a55f5c0ca7b15e Mon Sep 17 00:00:00 2001 From: Schmarni Date: Tue, 22 Jul 2025 02:56:25 +0200 Subject: [PATCH] chore: build with optimization in debug builds Signed-off-by: Schmarni --- Cargo.toml | 8 ++++++++ crates/bevy_openxr/Cargo.toml | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ad93697..5861d2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/crates/bevy_openxr/Cargo.toml b/crates/bevy_openxr/Cargo.toml index b42e310..caf0cb1 100644 --- a/crates/bevy_openxr/Cargo.toml +++ b/crates/bevy_openxr/Cargo.toml @@ -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]