---
title: "soroban-spec-rust 30.0.0 Breaking Changes on crates.io"
description: "What each soroban-spec-rust release removed, renamed or changed: 21 breaking changes in 2 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/soroban-spec-rust
last_updated: 2026-12-04
---

# soroban-spec-rust breaking changes

soroban-spec-rust 30.0.0 (November 24, 2026) is its newest release with breaking changes, 14 of them. The first: Integer #\[contracttype\] enums no longer accepted by panic_with_error in soroban-spec-rust 30.0.0. Every breaking API change we have recorded in soroban-spec-rust on crates.io: 21 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `30.0.0`, released November 24, 2026. [Source repository](https://github.com/stellar/rs-soroban-sdk)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [30.0.0-rc.1](#v-30-0-0-rc-1) to [30.0.0](#v-30-0-0): 14 breaking changes in 1 version.

## soroban-spec-rust 30.0.0 breaking changes

soroban-spec-rust 30.0.0, released November 24, 2026: 14 breaking changes.

- **Removed**  

Integer enums defined with #\[contracttype\] can no longer be passed to panic_with_error! or Env::panic_with_error; use #\[contracterror\] types instead. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0)
- **Removed** `rssdk_spec_shaking`  

Tools should determine spec shaking from the rssdkver meta entry instead of rssdk_spec_shaking. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0)
- **Behavior changed**  

Specs containing duplicate names now get unique names with numbers appended, so the contract spec changes when upgrading an existing contract with duplicates. [docs.rs](https://docs.rs/soroban-sdk/30.0.0/soroban%5Fsdk/%5Fmigrating/index.html)
- **Behavior changed**  

Contract Wasm now carries spec markers only for spec entries that are events or errors triggered by panics; tools inspecting Wasm may need to adjust. [docs.rs](https://docs.rs/soroban-sdk/30.0.0/soroban%5Fsdk/%5Fmigrating/index.html)
- **Behavior changed**  

Build contracts with stellar contract build from a stellar-cli of equal or greater major version than the SDK's major version. [docs.rs](https://docs.rs/soroban-sdk/30.0.0/soroban%5Fsdk/%5Fmigrating/index.html)
- **Behavior changed**  

Contracts with duplicate type, event, or error names get renamed entries in the spec; clients generated from those specs will see new names. Give each type a unique name to keep names unchanged. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0)
- **Behavior changed** `contract`  

Only unit structs and empty braced structs are accepted as contract types; types with fields, tuple structs, or generics now fail to compile. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0)
- **Behavior changed** `MuxedAddress.id`  

Code that reads MuxedAddress::id() must not assume an address with an id is an account; use MuxedAddress::address() for the address that holds a balance or authorizes. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0)
- **Behavior changed** `spec_xdr`  

spec_xdr fns now return entries with full-path names and unshaken; tools must reduce names with soroban_spec::reduce::reduce. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0)
- **Behavior changed** `stellar-cli`  

Contracts using soroban-sdk v30 must be built with stellar contract build from stellar-cli v30.0.0 or newer. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0)
- **Signature changed** `soroban_spec_rust::generate`  

Was fn generate(specs: &\[ScSpecEntry\], file: &str, sha256: &str) -> Result\<TokenStream, GenerateError>; now fn generate(specs: &\[ScSpecEntry\], file: &str, sha256: &str, sdk_major_version: Option\<u32>) -> Result\<TokenStream, GenerateError>. [crates.io](https://crates.io/crates/soroban-spec-rust/30.0.0)
- **Signature changed** `soroban_spec_rust::generate_with_options`  

Was fn generate_with_options(specs: &\[ScSpecEntry\], file: &str, sha256: &str, opts: &GenerateOptions) -> Result\<TokenStream, GenerateError>; now fn generate_with_options(specs: &\[ScSpecEntry\], file: &str, sha256: &str, sdk_major_version... [crates.io](https://crates.io/crates/soroban-spec-rust/30.0.0)
- **Signature changed** `soroban_spec_rust::generate_without_file`  

Was fn generate_without_file(specs: &\[ScSpecEntry\]) -> Result\<TokenStream, GenerateError>; now fn generate_without_file(specs: &\[ScSpecEntry\], sdk_major_version: Option\<u32>) -> Result\<TokenStream, GenerateError>. [crates.io](https://crates.io/crates/soroban-spec-rust/30.0.0)
- **Signature changed** `soroban_spec_rust::generate_without_file_with_options`  

Was fn generate_without_file_with_options(specs: &\[ScSpecEntry\], opts: &GenerateOptions) -> Result\<TokenStream, GenerateError>; now fn generate_without_file_with_options(specs: &\[ScSpecEntry\], sdk_major_version: Option\<u32>, opts... [crates.io](https://crates.io/crates/soroban-spec-rust/30.0.0)

## soroban-spec-rust 30.0.0-rc.1 breaking changes

soroban-spec-rust 30.0.0-rc.1, released November 24, 2026: 7 breaking changes.

- **Removed**  

Integer enums defined with #\[contracttype\] can no longer be passed to panic_with_error! or Env::panic_with_error; use #\[contracterror\] types instead. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0-rc.1)
- **Removed** `rssdk_spec_shaking`  

Tools should determine spec shaking from the rssdkver meta entry instead of rssdk_spec_shaking. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0-rc.1)
- **Behavior changed**  

Contracts with duplicate type, event, or error names get renamed entries in the spec; clients generated from those specs will see new names. Give each type a unique name to keep names unchanged. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0-rc.1)
- **Behavior changed** `contract`  

Only unit structs and empty braced structs are accepted as contract types; types with fields, tuple structs, or generics now fail to compile. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0-rc.1)
- **Behavior changed** `MuxedAddress.id`  

Code that reads MuxedAddress::id() must not assume an address with an id is an account; use MuxedAddress::address() for the address that holds a balance or authorizes. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0-rc.1)
- **Behavior changed** `spec_xdr`  

spec_xdr fns now return entries with full-path names and unshaken; tools must reduce names with soroban_spec::reduce::reduce. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0-rc.1)
- **Behavior changed** `stellar-cli`  

Contracts using soroban-sdk v30 must be built with stellar contract build from stellar-cli v30.0.0 or newer. [github.com](https://github.com/stellar/rs-soroban-sdk/releases/tag/v30.0.0-rc.1)

## Related packages

- [soroban-sdk](https://since.dev/packages/crates/soroban-sdk.md)
- [soroban-ledger-snapshot](https://since.dev/packages/crates/soroban-ledger-snapshot.md)
- [soroban-spec](https://since.dev/packages/crates/soroban-spec.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
