Repository navigation
Enable wincode in place of bincode on sdk interface crates - #16427
Merged
Merged
Conversation
Problem The workspace, clap-utils, clap-v3-utils, accounts-cluster-bench, keygen and runtime tests enable the bincode feature of solana-system-interface, solana-stake-interface or solana-instruction, although every builder they use also exists under wincode with the same bytes. Summary of Changes - enable wincode in place of bincode on those dependencies - build keygen's verify message instruction with Instruction::new_with_wincode
Problem cli-output decodes vote, stake and system instruction data for display with solana_bincode::limited_deserialize. Summary of Changes - decode them with wincode, reading at most PACKET_DATA_SIZE bytes - drop the solana-bincode dependency and its unused workspace entry
kskalski
force-pushed
the
ks/bincode_feature_flags
branch
from
October 27, 2026 09:38
99b1607 to
61325e7
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #16427 +/- ##
=========================================
- Coverage 82.4% 82.4% -0.1%
=========================================
Files 954 954
Lines 373538 373539 +1
=========================================
- Hits 308068 307990 -78
- Misses 65470 65549 +79 🚀 New features to boost your workflow:
|
kskalski
marked this pull request as ready for review
October 27, 2026 10:53
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.
Problem
bincodefeature ofsolana-system-interface,solana-stake-interfaceorsolana-instruction, although every builder they use also exists underwincodewith the same bytessolana_bincode::limited_deserialize, which makes it the last user ofsolana-bincodeSummary of Changes
wincodein place ofbincodeon those sdk interface dependenciesInstruction::new_with_wincodePACKET_DATA_SIZEbytes and accepting trailing bytes likelimited_deserializesolana-bincodefrom cli-output and from the workspace dependencies, which removes it from all three lockfilesTesting
CI