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>
This commit is contained in:
Ahmad Kaouk 2025-12-05 11:31:19 +01:00 committed by GitHub
parent 5f2b366031
commit 207f2ff86a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 7 deletions

View file

@ -1,6 +0,0 @@
[profile.release]
lto = "thin"
opt-level = 2
[registries.crates-io]
protocol = "sparse"

View file

@ -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]