Skip to content

Update stellar-xdr dependency to v28 - #61

Merged
quietbits merged 1 commit into
mainfrom
p28
Aug 25, 2026
Merged

quietbits merged 1 commit into
mainfrom
p28

Conversation

@quietbits

Copy link
Copy Markdown
Contributor

Update stellar-xdr to 28.0.0 (Protocol 28) from the crates.io release.

⚠️ Breaking change for consumers

stellar-xdr 28 renames the ScSpecFunctionInputV0 field in JSON output from type_ to type. Any downstream code that reads that field breaks. This might affect stellar/laboratory, which consumes @stellar/stellar-xdr-json.

- "type_": "address"
+ "type":  "address"

The trailing _ is dropped from the field name.

Changes

  • stellar-xdr 27.0.0 → 28.0.0. The feature list is unchanged, and src/lib.rs needs no changes.
  • list_of_types test: add the new types ContractExecutableExternalRef (CAP-0085) and StellarValueProposedValue. Move ScBytes/ScString/ScSymbol up before ScValType, and move ContractExecutable down after ScAddress, to match the order the crate now returns.
  • decode_iter_success test: expect type in place of type_.
  • deny.toml: skip the crate-git-revision 0.0.6/0.0.9 duplicate. stellar-xdr 28 build-depends on 0.0.9 but pins stellar-strkey ^0.0.13, which for a 0.0.x version means exactly 0.0.13 and still build-depends on 0.0.6. Only stellar-strkey 0.0.18 moved to 0.0.9, so version selection cannot unify them. Both are build-only deps, so nothing extra ships in the wasm. Remove the skip when stellar-xdr loosens the pin.

This supersedes the SPIKE in #60, which git-pinned a fork to preview CAP-0085. The released crate needs neither the allow-git entry nor wasm-opt = false from that branch, and it orders ContractExecutableExternalRef differently.

Verification

cargo fmt --all --check, cargo deny check bans licenses sources advisories, make build, and make test all pass locally, including 24/24 tests in headless Firefox. The native and wasm32 builds pass under RUSTFLAGS=-Dwarnings.

Copilot AI balanced review requested due to automatic review settings August 25, 2026 14:06
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedstellar-xdr@​27.0.0 ⏵ 28.0.093 +1100100100100

View full report

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the XDR codec to Protocol 28 while documenting its consumer-facing JSON change.

Changes:

  • Upgrades stellar-xdr to 28.0.0.
  • Updates expected type enumeration and JSON field naming.
  • Allows the unavoidable build-only dependency duplication.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
Cargo.toml Upgrades stellar-xdr.
Cargo.lock Locks updated dependencies.
deny.toml Allows the documented duplicate build dependency.
tests/tests.rs Updates Protocol 28 expectations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Aug 25, 2026
@quietbits
quietbits merged commit 75acc01 into main Aug 25, 2026
12 checks passed
@quietbits
quietbits deleted the p28 branch August 25, 2026 18:32
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants