diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 8c75884..8f21389 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -21,11 +21,15 @@ tauri-plugin-dialog = "2.0.0-beta.9" tauri-plugin-os = "2.0.0-beta.6" chrono = "0.4.37" +[profile.dev] +incremental = true # Compile your binary in smaller steps. + [profile.release] -codegen-units = 1 # Compile crates one after another so the compiler can optimize better -lto = true # Enables link to optimizations -opt-level = "z" # Optimize for binary size -strip = true # Remove debug symbols +codegen-units = 1 # Allows LLVM to perform better optimization. +lto = true # Enables link-time-optimizations. +opt-level = "s" # Prioritizes small binary size. Use `3` if you prefer speed. +panic = "abort" # Higher performance by disabling panic handlers. +strip = true # Ensures debug symbols are removed. [features] # this feature is used for production builds or when `devPath` points to the filesystem