From 207f2ff86ac12fafcfc37ad50a02c840c381dc76 Mon Sep 17 00:00:00 2001 From: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com> Date: Fri, 5 Dec 2025 11:31:19 +0100 Subject: [PATCH] chore: remove redundant cargo config file (#324) ## Summary - Remove .cargo/config.toml that was unintentionally overriding release and **production** profile settings - Fix outdated comment referencing Moonbeam instead of Datahaven ## Details - The `operator/.cargo/config.toml` file was overriding the release profile configuration defined in `Cargo.toml`. Removing it ensures the intended `Cargo.toml` settings are used. - The protocol = "sparse" setting for crates.io is no longer needed as it has been the default since Cargo 1.70 (Rust 1.70.0). ## Important This override also affected the production profile . Since `[profile.production]` inherits from release, the `opt-level = 2` from `config.toml` propagated to production builds. --------- Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com> --- operator/.cargo/config.toml | 6 ------ operator/Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 operator/.cargo/config.toml diff --git a/operator/.cargo/config.toml b/operator/.cargo/config.toml deleted file mode 100644 index f42e1463..00000000 --- a/operator/.cargo/config.toml +++ /dev/null @@ -1,6 +0,0 @@ -[profile.release] -lto = "thin" -opt-level = 2 - -[registries.crates-io] -protocol = "sparse" \ No newline at end of file diff --git a/operator/Cargo.toml b/operator/Cargo.toml index dd1ffeb7..128cdaa3 100644 --- a/operator/Cargo.toml +++ b/operator/Cargo.toml @@ -379,7 +379,7 @@ lto = true [profile.release] debug-assertions = true # Enable debug-assert! for non-production profiles opt-level = 3 -# Moonbeam runtime requires unwinding. +# Datahaven runtime requires unwinding. panic = "unwind" [profile.testnet]