Explorar o código

Faster debug builds by excluding debug symbols

This also cleans up the release profile in Cargo.toml, which was having its default settings overridden with identical default settings.
Benjamin Sago %!s(int64=4) %!d(string=hai) anos
pai
achega
83f245237b
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  1. 6 3
      Cargo.toml

+ 6 - 3
Cargo.toml

@@ -52,11 +52,14 @@ default = [ "git" ]
 git = [ "git2" ]
 vendored-openssl = ["git2/vendored-openssl"]
 
-[profile.release]
-opt-level = 3
+
+# make dev builds faster by excluding debug symbols
+[profile.dev]
 debug = false
+
+# use LTO for smaller binaries (that take longer to build)
+[profile.release]
 lto = true
-panic = "abort"
 
 
 [package.metadata.deb]