Skip to content

Commit

Permalink
fix(v2): set profile overrides in root manifest (#4407)
Browse files Browse the repository at this point in the history
### Description

Backport of
#4402

Fixes `cargo build-sbf` warnings by moving all profile overrides to
`rust/Cargo.toml`, so they actually take effect.
  • Loading branch information
daniel-savu authored Aug 30, 2024
1 parent 0be930d commit 08a0310
Show file tree
Hide file tree
Showing 23 changed files with 67 additions and 48 deletions.
67 changes: 67 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,73 @@ walkdir = "2"
warp = "0.3"
which = "4.3"

[profile.release.package.access-control]
overflow-checks = true

[profile.release.package.account-utils]
overflow-checks = true

[profile.release.package.ecdsa-signature]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-connection-client]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-token-lib]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-interchain-security-module-interface]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-message-recipient-interface]
overflow-checks = true

[profile.release.package.multisig-ism]
overflow-checks = true

[profile.release.package.serializable-account-meta]
overflow-checks = true

[profile.release.package.hyperlane-test-transaction-utils]
overflow-checks = true

[profile.release.package.hyperlane-test-utils]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-mailbox]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-igp]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-igp-test]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-token]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-token-collateral]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-token-native]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-multisig-ism-message-id]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-test-ism]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-mailbox-test]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-test-send-receiver]
overflow-checks = true

[profile.release.package.hyperlane-sealevel-validator-announce]
overflow-checks = true


[workspace.dependencies.ethers]
git = "https://github.com/hyperlane-xyz/ethers-rs"
features = []
Expand Down
3 changes: 0 additions & 3 deletions rust/sealevel/libraries/access-control/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ solana-program.workspace = true

[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
3 changes: 0 additions & 3 deletions rust/sealevel/libraries/account-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ spl-type-length-value.workspace = true

[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
3 changes: 0 additions & 3 deletions rust/sealevel/libraries/ecdsa-signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ getrandom = { workspace = true, features = ["custom"] }

[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,3 @@ hyperlane-sealevel-igp = { path = "../../programs/hyperlane-sealevel-igp", featu

[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/libraries/hyperlane-sealevel-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ serializable-account-meta = { path = "../serializable-account-meta" }
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ spl-type-length-value.workspace = true
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ getrandom = { workspace = true, features = ["custom"] }
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/libraries/multisig-ism/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ hex.workspace = true
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/libraries/serializable-account-meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ solana-program.workspace = true
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/libraries/test-transaction-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ solana-sdk.workspace = true
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/libraries/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ serializable-account-meta = { path = "../serializable-account-meta" }
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/hyperlane-sealevel-igp-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ solana-program-test.workspace = true
solana-sdk.workspace = true
hyperlane-test-utils = { path = "../../libraries/test-utils" }

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/hyperlane-sealevel-igp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ serde = { workspace = true, optional = true }
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ hyperlane-sealevel-test-ism = { path = "../ism/test-ism", features = ["no-entryp
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ tarpc = "~0.29"
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/hyperlane-sealevel-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ hyperlane-sealevel-test-ism = { path = "../ism/test-ism", features = ["no-entryp
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/ism/multisig-ism-message-id/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ multisig-ism = { path = "../../../libraries/multisig-ism", features = ["test-dat
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/ism/test-ism/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ hyperlane-test-transaction-utils = { path = "../../../libraries/test-transaction
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/mailbox-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ serializable-account-meta = { path = "../../libraries/serializable-account-meta"
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/mailbox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ log.workspace = true
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/test-send-receiver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ serializable-account-meta = { path = "../../libraries/serializable-account-meta"
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true
2 changes: 0 additions & 2 deletions rust/sealevel/programs/validator-announce/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ hyperlane-test-utils ={ path = "../../libraries/test-utils" }
[lib]
crate-type = ["cdylib", "lib"]

[profile.release]
overflow-checks = true

0 comments on commit 08a0310

Please sign in to comment.