From 73d6b20775d8077c7855f188b53e05c034edc993 Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Tue, 3 Oct 2023 15:41:20 +0200 Subject: [PATCH] chore: compile dependencies with optimizations in dev mode Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com> --- Cargo.lock | 1 - Cargo.toml | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index a3b2f12f4..71807d318 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2167,7 +2167,6 @@ dependencies = [ "log", "merge", "mimalloc", - "nix", "once_cell", "pariter", "path-dedot", diff --git a/Cargo.toml b/Cargo.toml index c5d1eff87..b4ceed3e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -270,6 +270,12 @@ lto = false debug-assertions = true codegen-units = 4 +# compile dependencies with optimizations in dev mode +# see: https://doc.rust-lang.org/stable/cargo/reference/profiles.html#overrides +[profile.dev.package."*"] +opt-level = 3 +debug = true + [profile.release] opt-level = 3 debug = false # true for profiling