From: Nutomic Date: Thu, 13 Jul 2023 18:50:17 +0000 (+0200) Subject: Add dev profile to strip symbols and disable debug info (ref #3610) (#3611) X-Git-Url: http://these/git/readmes/static/git-logo.png?a=commitdiff_plain;h=39f28c1a404bd720739552fe585a2d5aa3363d2e;p=lemmy.git Add dev profile to strip symbols and disable debug info (ref #3610) (#3611) * 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 --- diff --git a/Cargo.toml b/Cargo.toml index 9df383df..bcde667a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"]