Browse Source

Add release optimizations to Cargo.toml

Lee Morgan 1 tháng trước cách đây
mục cha
commit
c7a40ebeb9
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  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