Skip to content

build(contracts): Optimize workspace release profile and remove depre… - #142

Merged
elizabetheonoja-art merged 1 commit into
Utility-Protocol:mainfrom
TheBigWealth89:build/optimize-config
Aug 22, 2026
Merged

build(contracts): Optimize workspace release profile and remove depre…#142
elizabetheonoja-art merged 1 commit into
Utility-Protocol:mainfrom
TheBigWealth89:build/optimize-config

Conversation

@TheBigWealth89

Copy link
Copy Markdown
Contributor

Description

This PR cleans up the build tooling and configuration for the Soroban smart contract workspace without altering any core contract logic, addressing #138.

Changes

  1. Removed wee_alloc: Dropped wee_alloc entirely from all contract dependency trees. It is unmaintained and deprecated, and the Soroban host environment allocator serves perfectly fine.
  2. Added Workspace Release Profile: Implemented size-optimized WASM compilation settings (opt-level = "z", lto = true, codegen-units = 1) in the root Cargo.toml to drastically improve resulting WASM bundle sizes.
  3. Cleaned dead deployment scripts: Removed the orphaned scripts/deploy.sh script which contained hardcoded contract demo IDs and was unreferenced in the CI pipeline.

Verification & Testing

  • ✅ Evaluated the workspace build structure to confirm configuration applies globally.
  • ⚠️ Note on Compilation: The utility_contracts currently has ~184 pre-existing borrow checker compilation errors on the main branch preventing a successful build completion, independent of these config changes. These will need to be resolved in a separate logic-fix PR.

Closes #138

@elizabetheonoja-art
elizabetheonoja-art merged commit 7608de1 into Utility-Protocol:main Aug 22, 2026
7 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean Up Hardhat/Foundry Configuration

2 participants