Skip to content

update soroban sdk - #615

Merged
ozgunozerk merged 3 commits into
mainfrom
update-soroban-sdk
Mar 12, 2026
Merged

ozgunozerk merged 3 commits into
mainfrom
update-soroban-sdk

Conversation

@ozgunozerk

@ozgunozerk ozgunozerk commented Mar 12, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #573

Reduced the compiled wasm from 50KB to 9KB (for fungible-pausable).

PR Checklist

  • Tests
  • Documentation

@brozorec due to changes, now we cannot build the contracts with cargo build --release --target=wasm32v1-none. Instead, we have to do it with stellar contract build.

Then, we have to append our readme with installation guide for stellar cli as well.

Wanted to get your opinion/confirmation on this workflow before making these changes.

Summary by CodeRabbit

  • Chores
    • Updated core framework dependencies to the latest version with experimental optimization features enabled for enhanced compilation efficiency.

@ozgunozerk ozgunozerk self-assigned this Mar 12, 2026
@coderabbitai

coderabbitai Bot commented Mar 12, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bd781b86-f041-4832-86f2-bd89ebef0cf8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

Updated the soroban-sdk workspace dependency from version 25.0.2 to 25.3.0 and enabled the experimental_spec_shaking_v2 feature flag, which addresses binary size bloat caused by unused type specifications in contract artifacts.

Changes

Cohort / File(s) Summary
Dependency Update
Cargo.toml
Updated soroban-sdk from version "25.0.2" to { version = "25.3.0", features = ["experimental_spec_shaking_v2"] } to enable experimental spec shaking feature for reducing binary size.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A spec-shake dance to trim the fat,
No more bloat! Our binaries go lean,
Twenty-five point three, that's where it's at—
Smaller contracts, the nicest we've seen!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title directly describes the main change: updating the Soroban SDK version and configuration. This accurately reflects the core modification in Cargo.toml.
Description check ✅ Passed The PR description includes linked issue (#573), explains the impact (50KB to 9KB reduction), notes workflow changes, and includes checklist items. Template structure is mostly followed.
Linked Issues check ✅ Passed The changes successfully address issue #573 by updating Soroban SDK to version 25.3.0 with experimental_spec_shaking_v2 feature, which reduces spec leakage and WASM binary sizes as required.
Out of Scope Changes check ✅ Passed All changes are directly related to fixing issue #573; only the Soroban SDK dependency update is included with no extraneous modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-soroban-sdk

Comment @coderabbitai help to get the list of available commands and usage tips.

@brozorec

Copy link
Copy Markdown
Collaborator

@ozgunozerk yep, sounds great 👍

@codecov

codecov Bot commented Mar 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.37%. Comparing base (ac36f2f) to head (235abe0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #615   +/-   ##
=======================================
  Coverage   96.37%   96.37%           
=======================================
  Files          58       58           
  Lines        5960     5960           
=======================================
  Hits         5744     5744           
  Misses        216      216           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ozgunozerk
ozgunozerk requested a review from brozorec March 12, 2026 10:59
@ozgunozerk
ozgunozerk merged commit 263d86b into main Mar 12, 2026
6 checks passed
@ozgunozerk
ozgunozerk deleted the update-soroban-sdk branch March 12, 2026 11:08
@coderabbitai coderabbitai Bot mentioned this pull request Apr 3, 2026
2 tasks done
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.

🐞 [Bug]: Spec leakage causes large binaries

2 participants