Repository navigation
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Updates the XDR codec to Protocol 28 while documenting its consumer-facing JSON change.
Changes:
- Upgrades
stellar-xdrto 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.
fnando
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update
stellar-xdrto 28.0.0 (Protocol 28) from the crates.io release.stellar-xdr28 renames theScSpecFunctionInputV0field in JSON output fromtype_totype. Any downstream code that reads that field breaks. This might affectstellar/laboratory, which consumes@stellar/stellar-xdr-json.The trailing
_is dropped from the field name.Changes
stellar-xdr27.0.0 → 28.0.0. The feature list is unchanged, andsrc/lib.rsneeds no changes.list_of_typestest: add the new typesContractExecutableExternalRef(CAP-0085) andStellarValueProposedValue. MoveScBytes/ScString/ScSymbolup beforeScValType, and moveContractExecutabledown afterScAddress, to match the order the crate now returns.decode_iter_successtest: expecttypein place oftype_.deny.toml: skip thecrate-git-revision0.0.6/0.0.9 duplicate.stellar-xdr28 build-depends on 0.0.9 but pinsstellar-strkey ^0.0.13, which for a0.0.xversion means exactly 0.0.13 and still build-depends on 0.0.6. Onlystellar-strkey0.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 whenstellar-xdrloosens the pin.This supersedes the SPIKE in #60, which git-pinned a fork to preview CAP-0085. The released crate needs neither the
allow-gitentry norwasm-opt = falsefrom that branch, and it ordersContractExecutableExternalRefdifferently.Verification
cargo fmt --all --check,cargo deny check bans licenses sources advisories,make build, andmake testall pass locally, including 24/24 tests in headless Firefox. The native and wasm32 builds pass underRUSTFLAGS=-Dwarnings.