Explorar el 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 hace 4 años
padre
commit
83f245237b
Se han modificado 1 ficheros con 6 adiciones y 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]