ソースを参照

Update Cargo.toml to optimise binaries for size

Strip binaries, change optimisation level to heavily optimise for size, change codegen units to 1, which slows compile times but adds maximum size optimisations.
zen1tho 3 年 前
コミット
def77cc14e
1 ファイル変更3 行追加0 行削除
  1. 3 0
      Cargo.toml

+ 3 - 0
Cargo.toml

@@ -61,6 +61,9 @@ debug = false
 # use LTO for smaller binaries (that take longer to build)
 [profile.release]
 lto = true
+strip = true
+opt-level = "z"
+codegen-units = 1
 
 
 [package.metadata.deb]