Update soroban-sdk version reference and add BytesN array conversion for 26.1.0#2479
Update soroban-sdk version reference and add BytesN array conversion for 26.1.0#2479leighmcculloch wants to merge 5 commits into
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
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.
|
Preview is available here: |
|
Preview is available here: |
1 similar comment
|
Preview is available here: |
|
Preview is available here: |
|
Preview is available here: |
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.