From 3c5727ca78861c00d6cf9341468dc5e73be975ee Mon Sep 17 00:00:00 2001 From: xdustinface Date: Sun, 8 Mar 2026 09:32:22 +0700 Subject: [PATCH] chore: move `fuzz` profile settings to workspace root Fix the long existing cargo warning: ``` warning: profiles for the non root package will be ignored, specify profiles at the workspace root: package: /Users/kevin/GIT/rust-dashcore/fuzz/Cargo.toml workspace: /Users/kevin/GIT/rust-dashcore/Cargo.toml ``` Profile settings in non-root packages are ignored by Cargo. Move `codegen-units` to the workspace root's per-package profile override and remove the redundant `[profile.release]` section from `fuzz/Cargo.toml`. The `lto` and `panic` settings already match the workspace defaults. --- Cargo.toml | 1 + fuzz/Cargo.toml | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f6a43bbde..eceadf0f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ panic = "unwind" [profile.release.package.dash-fuzz] # Disable LTO and keep debuginfo for honggfuzz to avoid link GC issues +codegen-units = 16 debug = 1 [profile.dev] diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index d9b47e8e7..f93bdf390 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -6,12 +6,6 @@ authors = ["Generated by fuzz/generate-files.sh"] license = "CC0-1.0" publish = false -[profile.release] -lto = false -codegen-units = 16 -debug = 1 -panic = "unwind" - [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fuzzing)"] }