Skip to content

Enable wincode in place of bincode on sdk interface crates - #16427

Merged
kskalski merged 2 commits into
anza-xyz:masterfrom
kskalski:ks/bincode_feature_flags
Oct 27, 2026
Merged

kskalski merged 2 commits into
anza-xyz:masterfrom
kskalski:ks/bincode_feature_flags

Conversation

@kskalski

@kskalski kskalski commented Oct 27, 2026 •

Copy link
Copy Markdown

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
  • cli-output decodes vote, stake and system instruction data for display with solana_bincode::limited_deserialize, which makes it the last user of solana-bincode

Summary of Changes

  • enable wincode in place of bincode on those sdk interface dependencies
  • build keygen's verify message instruction with Instruction::new_with_wincode
  • decode the displayed instructions in cli-output with wincode, reading at most PACKET_DATA_SIZE bytes and accepting trailing bytes like limited_deserialize
  • drop solana-bincode from cli-output and from the workspace dependencies, which removes it from all three lockfiles

Testing

CI

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
kskalski force-pushed the ks/bincode_feature_flags branch from 99b1607 to 61325e7 Compare October 27, 2026 09:38
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 7.14286% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.4%. Comparing base (7b562d4) to head (61325e7).
⚠️ Report is 1 commits behind head on master.

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kskalski
kskalski marked this pull request as ready for review October 27, 2026 10:53
@kskalski
kskalski requested a review from joncinque October 27, 2026 10:53

@joncinque joncinque left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Beautiful!

@kskalski
kskalski added this pull request to the merge queue Oct 27, 2026
Merged via the queue into anza-xyz:master with commit ee8e3bd Oct 27, 2026
57 checks passed
@kskalski
kskalski deleted the ks/bincode_feature_flags branch October 27, 2026 11:37
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.

3 participants