From 39f28c1a404bd720739552fe585a2d5aa3363d2e Mon Sep 17 00:00:00 2001 From: Nutomic Date: Thu, 13 Jul 2023 20:50:17 +0200 Subject: [PATCH] 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 --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 9df383df4..bcde667a1 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"]