From 4865bc066f87e72249a09a6a034abfd27f165ad8 Mon Sep 17 00:00:00 2001 From: Jordon Brooks Date: Sun, 22 Jun 2025 15:08:58 +0100 Subject: [PATCH] Add release profile settings and update tauri-build dependency configuration --- src-tauri/Cargo.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 3fd483a..c6c35e1 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -8,6 +8,14 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +opt-level = "z" # optimize for size +lto = true # link-time optimizations +codegen-units = 1 # single codegen unit for better inlining +panic = "abort" # no unwind tables +debug = false # drop debug info +strip = "symbols" # remove symbol table (cargo ≥1.62) + [lib] # The `_lib` suffix may seem redundant but it is necessary # to make the lib name unique and wouldn't conflict with the bin name. @@ -16,7 +24,7 @@ name = "openvcs_lib" crate-type = ["staticlib", "cdylib", "rlib"] [build-dependencies] -tauri-build = { version = "2", features = [] } +tauri-build = { version = "2", default-features = false, features = [] } [dependencies] tauri = { version = "2", features = [] }