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
On this page
Latest version 30.0.0, released November 24, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
- From 30.0.0-rc.1 to 30.0.0: 14 breaking changes in 1 version.
soroban-spec-rust 30.0.0 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 - Removed
rssdk_spec_shaking
Tools should determine spec shaking from the rssdkver meta entry instead of rssdk_spec_shaking. github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
soroban-spec-rust 30.0.0-rc.1 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 - Removed
rssdk_spec_shaking
Tools should determine spec shaking from the rssdkver meta entry instead of rssdk_spec_shaking. github.com - 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 - 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 - 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 - 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 - 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
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.