Repository navigation
Update soroban-sdk version reference and add BytesN array conversion for 26.1.0 - #2479
Merged
Merged
Conversation
…e for 26.1.0 - Update hello-world Cargo.toml example from soroban-sdk = "22" to "26" - Add BytesN<N> to [u8; N] conversion section in bytes-conversions guide, noting the zero-copy improvement shipped in soroban-sdk 26.1.0
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Soroban documentation to reflect the newer soroban-sdk major version and to document the newly optimized BytesN -> [u8; N] conversion behavior introduced in 26.1.0.
Changes:
- Update the Hello World workspace dependency example from
soroban-sdk = "22"tosoroban-sdk = "26". - Add a new “BytesN to Fixed-Size Array” section documenting
BytesN<N>::to_array()plusInto<[u8; N]>conversions (by value and by reference).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/build/smart-contracts/getting-started/hello-world.mdx | Refreshes the example Soroban SDK version used in the Rust workspace snippet. |
| docs/build/guides/conversions/bytes-conversions.mdx | Adds documentation for converting BytesN<N> into a native fixed-size byte array. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1 similar comment
leighmcculloch
commented
Jun 8, 2026
mootz12
approved these changes
Jun 9, 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.
What
Refresh the smart contract getting-started documentation for the soroban-sdk 26.1.0 release by bringing the Hello World dependency example up to the current major version and documenting how to convert a
BytesN<N>into a native fixed-size[u8; N]array.Why
The Hello World guide pinned
soroban-sdk = "22", four major versions behind the released crate, so developers following the quickstart started against a stale SDK; and theBytesN<N>to[u8; N]conversion, exercised and optimized in the 26.1.0 release (rs-soroban-sdk#1903), had no entry in the conversions guide despite being a routine operation when working with hashes and keys. Deeper 26.1.0 changes that warrant their own pages are tracked separately in stellar-docs#2480.