PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Tests: build ui-egui without optimization in the test profile
Ivan2ff756b51a57
diff --git a/Cargo.toml b/Cargo.tomlindex 2c329d980..f945869aa 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -78,6 +78,14 @@ opt-level = 1# CARGO_PROFILE_DEV_DEBUG. To inspect locals in a debugger, build with CARGO_PROFILE_DEV_DEBUG=true.debug = "line-tables-only"+# Test builds compile ui-egui without optimization: its library and unit tests were the biggest+# test-build units after engine's (12.6 of ~63 compile minutes on the Windows CI runner), and its+# tests run no heavier pixel code of their own (that lives in the crates that stay optimized).+# Measured on CI: Windows build 18.9 -> 15.4 min, test run 10.0 -> 10.5. `cargo run` and+# `cargo build` use the dev profile and are unaffected.+[profile.test.package.photocraft-ui-egui]+opt-level = 0+[profile.release]lto = "thin"codegen-units = 1