]> git.nega.tv - josh/narcissus/commitdiff
Update build script profile defaults
authorJoshua Simmons <josh@nega.tv>
Sun, 4 Sep 2022 21:05:10 +0000 (23:05 +0200)
committerJoshua Simmons <josh@nega.tv>
Sun, 4 Sep 2022 21:05:10 +0000 (23:05 +0200)
Add optimizations to debug build.
Add LTO to release build.

Cargo.toml

index f52bec7b75d6dd03f0c8421edc7084f357d2ac48..296a65a803df387e3c2c4926655c730e4263a010 100644 (file)
@@ -15,6 +15,9 @@ members = [
 [profile.release]
 panic = "abort"
 debug = true
+opt-level = 3
+lto="thin"
 
 [profile.dev]
 panic = "abort"
+opt-level = 1