Browse Source

Add release optimizations to Cargo.toml

Lee Morgan 1 month ago
parent
commit
c7a40ebeb9
1 changed files with 11 additions and 0 deletions
  1. 11 0
      Cargo.toml

+ 11 - 0
Cargo.toml

@@ -7,3 +7,14 @@ edition = "2024"
 actix-files = "0.6.10"
 actix-web = "4.14.0"
 dotenvy = "0.15.7"
+
+[profile.release]
+opt-level = 3
+lto = "fat"
+codegen-units = 1
+panic = "abort"
+strip = true
+debug = false
+incremental = false
+rpath = false
+overflow-checks = false