From 275471a2ba9784b5ae267df9c0f2da590f0d6882 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 16 Nov 2023 11:44:50 +0100 Subject: [PATCH] switch off optimization in debug --- .cargo/config.toml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index cc767a7f68..5e452974ad 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,17 +1,3 @@ -# The binaries are really slow, if you compile them in 'dev' mode with the defaults. -# Enable some optimizations even in 'dev' mode, to make tests faster. The basic -# optimizations enabled by "opt-level=1" don't affect debuggability too much. -# -# See https://www.reddit.com/r/rust/comments/gvrgca/this_is_a_neat_trick_for_getting_good_runtime/ -# -[profile.dev.package."*"] -# Set the default for dependencies in Development mode. -opt-level = 3 - -[profile.dev] -# Turn on a small amount of optimization in Development mode. -opt-level = 1 - [build] # This is only present for local builds, as it will be overridden # by the RUSTDOCFLAGS env var in CI.