From 3eb1a5329b4951d3fa349e4c244057dbfb765b89 Mon Sep 17 00:00:00 2001 From: geoffsee <> Date: Sun, 31 Aug 2025 11:02:58 -0400 Subject: [PATCH] add rust compiler optimizations at workspace level, bump minor version and publish first release --- Cargo.toml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 43b53fb..cc22e49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,34 @@ members = [ default-members = ["crates/predict-otron-9000"] resolver = "2" +# Compiler optimization profiles for the workspace +[profile.release] +opt-level = 3 +debug = false +strip = true +lto = "thin" +codegen-units = 1 +panic = "abort" + +[profile.dev] +opt-level = 0 +debug = true +strip = false +overflow-checks = true + +# Profile for fast development builds with some optimization +[profile.dev-opt] +inherits = "dev" +opt-level = 1 +debug = true +overflow-checks = true + +# Profile for benchmarking and profiling +[profile.bench] +opt-level = 3 +debug = true +lto = "thin" + [[workspace.metadata.leptos]] # project name bin-package = "leptos-app"