]> Untitled Git - lemmy.git/commitdiff
Add dev profile to strip symbols and disable debug info (ref #3610) (#3611)
authorNutomic <me@nutomic.com>
Thu, 13 Jul 2023 18:50:17 +0000 (20:50 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Jul 2023 18:50:17 +0000 (14:50 -0400)
* Add dev profile to strip symbols and disable debug info (ref #3610)

This significantly speeds up builds:
- with strip symbols and debug 0: 43s
- without: 169s

* add comment, no strip symbols

Cargo.toml

index 9df383df433d6c3494ae4f24e655056c5678d8a7..bcde667a1e71112c8ae3ec7442ccdded4479b59e 100644 (file)
@@ -24,6 +24,11 @@ doctest = false
 debug = 0
 lto = "thin"
 
+# This profile significantly speeds up build time. If debug info is needed you can comment the line
+# out temporarily, but make sure to leave this in the main branch.
+[profile.dev]
+debug = 0
+
 [features]
 embed-pictrs = ["pict-rs"]
 console = ["console-subscriber", "opentelemetry", "opentelemetry-otlp", "tracing-opentelemetry", "reqwest-tracing/opentelemetry_0_16"]