From 050a1a350a8c4e06135cb2f2c113c675f8b2ea72 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 22 Oct 2025 19:27:44 +0000 Subject: [PATCH] Add dbg profile to Cargo; default to faster builds accomodating new users. --- Cargo.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bbbedee4..ff4764d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -723,7 +723,7 @@ strip = false # and can be raised if build times are tolerable. [profile.dev] -debug = "full" +debug = 0 #rustflags = [ # '--cfg', 'tuwunel_mods', # '-Ztime-passes', @@ -783,7 +783,7 @@ inherits = "dev" [profile.dev.package.'*'] inherits = "dev" -debug = "limited" +debug = 0 incremental = false codegen-units = 1 opt-level = 'z' @@ -800,6 +800,11 @@ opt-level = 'z' # '-Clink-arg=-Wl,-z,nodelete', #] +# same as dev but slower. +[profile.dbg] +inherits = "dev" +debug = "full" + # primarily used for CI [profile.test] debug = "limited"