Skip to content

Update soroban-sdk version reference and add BytesN array conversion for 26.1.0#2479

Open
leighmcculloch wants to merge 5 commits into
mainfrom
claude/sharp-hypatia-3g7n6k
Open

Update soroban-sdk version reference and add BytesN array conversion for 26.1.0#2479
leighmcculloch wants to merge 5 commits into
mainfrom
claude/sharp-hypatia-3g7n6k

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Jun 8, 2026

Copy link
Copy Markdown
Member

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 the BytesN<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.

…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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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" to soroban-sdk = "26".
  • Add a new “BytesN to Fixed-Size Array” section documenting BytesN<N>::to_array() plus Into<[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.

Comment thread docs/build/guides/conversions/bytes-conversions.mdx Outdated
@stellar-jenkins-ci

Copy link
Copy Markdown

@leighmcculloch leighmcculloch changed the title docs: update soroban-sdk version reference and add BytesN array conversion for 26.1.0 Update soroban-sdk version reference and add BytesN array conversion for 26.1.0 Jun 8, 2026
@stellar-jenkins-ci

Copy link
Copy Markdown

1 similar comment
@stellar-jenkins-ci

Copy link
Copy Markdown

@stellar-jenkins-ci

Copy link
Copy Markdown

Comment thread docs/build/smart-contracts/getting-started/hello-world.mdx Outdated
@leighmcculloch leighmcculloch requested a review from mootz12 June 8, 2026 22:53
@stellar-jenkins-ci

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants