Releases: stellar/rs-soroban-sdk
Releases · stellar/rs-soroban-sdk
23.5.3
What's Changed
- Fix
Frscalar field to reduce moduloron construction by @jayz22 in #1758 GHSA-x2hw-px52-wp4m
Full Changelog: v23.5.2...v23.5.3
22.0.11
What's Changed
- Fix
Frscalar field to reduce moduloron construction by @jayz22 in #1757 GHSA-x2hw-px52-wp4m
Full Changelog: v22.0.10...v22.0.11
25.3.0
25.2.0
What's Change
New Experimental Features
- Spec shaking for smaller contract binaries: The SDK now supports automatic removal of unused type and event definitions from the
contractspecv0section of compiled WASM files. By embedding markers that survive dead code elimination, only types and events actually used at contract boundaries (function parameters, return values, and events) are retained. This reduces contract binary size and enables imported contract types to be automatically re-exported when used. Requires Stellar CLI v25.2.0+. Behind a feature flagexperimental_spec_shaking_v2during the v25 release. (#1672)
Improvements
-
Compile-time validation for BigInt conversions:
BigInt::from<BytesN>now catches length mismatches at compile time instead of panicking at runtime, giving you earlier and clearer error messages. (#1725) -
Remove unnecessary clones in iterators: Iterator implementations no longer perform redundant clones, reducing overhead when iterating over SDK collection types. (#1734)
Bug Fixes
- Fix
BytesN::is_empty:BytesN::is_emptypreviously always returnedfalse. It now correctly returnstrueforBytesN<0>. (#1733)
Documentation
- Document the
allocfeature: Theallocmodule is now publicly documented in rustdoc, covering how the bump-pointer allocator works, thatdeallocis a no-op, and how to use a custom allocator instead. (#1726)
All Changes
- Remove unnecessary clone in iterators by @leighmcculloch in #1734
- Fix BytesN::is_empty to check const length by @leighmcculloch in #1733
- Use compile-time assert in BigInt::from by @leighmcculloch in #1725
- Add commentary to alloc module about use of static_mut_refs and light code reordering and vis changes by @leighmcculloch in #1722
- Document alloc feature by @leighmcculloch in #1726
- Bump deny action by @sisuresh in #1742
- Implement spec shaking using dead code elimination and data section of wasm by @leighmcculloch in #1672
- Bump version to 25.2.0 by @github-actions[bot] in #1749
Full Changelog: v25.1.1...v25.2.0
25.1.1
What's Changed
Bugs Fixed
- Fix trait method call resolution in contractimpl (#1729) (GHSA-4chv-4c6w-w254)
All Changes
- Fix trait method call resolution in contractimpl by @leighmcculloch in #1729
- Bump version to 25.1.1 by @github-actions[bot] in #1732
Full Changelog: v25.1.0...v25.1.1
23.5.2
What's Changed
Bugs Fixed
- Fix trait method call resolution in contractimpl (#1729) (GHSA-4chv-4c6w-w254)
All Changes
- Fix trait method call resolution in contractimpl by @leighmcculloch in #1729
Full Changelog: v23.5.1...v23.5.2
22.0.10
What's Changed
Bugs Fixed
- Fix trait method call resolution in contractimpl (#1729) (GHSA-4chv-4c6w-w254)
All Changes
- Fix trait method call resolution in contractimpl by @leighmcculloch in #1729
Full Changelog: v22.0.9...v22.0.10
25.1.0
What's Changed
Bug Fixes
- Fix contractimport macro rust compiler dependency tracking (#1713)
- Strengthen alloc arithmetic against edge cases (#1720)
New Features
- Add
Envtry_as_contracttestutils function (#1662)
All Changes
- fix: use include_bytes for contractfile macro to improve file dependency tracking by @mootz12 in #1713
- feat: add try_as_contract test function by @mootz12 in #1662
- Strengthen alloc arithmetic against edge cases by @graydon in #1720
- Bump version to 25.1.0 by @github-actions[bot] in #1721
Full Changelog: v25.0.2...v25.1.0
25.0.2
What's Changed
Bug Fixes
- Fix range bound overflow in Vec/Bytes slice and GenRange gen_range for u64 (#1703) (GHSA-96xm-fv9w-pf3f)
All Changes
- Update expanded test files missed in #1699 by @leighmcculloch in #1704
- Fix range bound overflow in Vec/Bytes slice and GenRange gen_range for u64 by @leighmcculloch in #1703
- Bump version to 25.0.2 by @github-actions[bot] in #1705
Full Changelog: v25.0.1...v25.0.2
23.5.1
What's Changed
Bug Fixes
All Changes
- Fix range bound overflow in Vec/Bytes slice and GenRange gen_range for u64 by @leighmcculloch in #1703 #1706
Full Changelog: v23.5.0...v23.5.1