Skip to content

fix(deps): pin bincode to v1.3 for API compatibility#12

Closed
Lenvanderhof wants to merge 1 commit intomainfrom
fix/bincode-api-compatibility
Closed

fix(deps): pin bincode to v1.3 for API compatibility#12
Lenvanderhof wants to merge 1 commit intomainfrom
fix/bincode-api-compatibility

Conversation

@Lenvanderhof
Copy link
Contributor

Summary

  • Pin bincode to 1.3.3 (latest 1.x) for API compatibility
  • bincode 2.0+ uses completely new Encode/Decode trait API
  • Current code uses legacy serialize()/deserialize() functions
  • Remove Cargo.lock from .gitignore for reproducible CI with --locked flag

Why not bincode 2.0?

bincode 2.0 requires migrating from:

// Old 1.x API
bincode::serialize(&data)?
bincode::deserialize(&bytes)?

To new 2.x API:

// New 2.x API with config
bincode::encode_to_vec(&data, config)?
bincode::decode_from_slice(&bytes, config)?

This requires changes across multiple modules. Using 1.3.3 (latest 1.x) now to unblock CI.

Future Work

Consider migrating to bincode 2.x API for improved performance and features.

Test Plan

  • CI passes on all platforms
  • Build with --locked succeeds
  • All serialization tests pass

🤖 Generated with Claude Code

- bincode 2.0+ has a completely new API (Encode/Decode traits)
- Code uses legacy 1.x serialize()/deserialize() functions
- Pin to bincode 1.3.3 (latest 1.x) until code is migrated to 2.x API
- Remove Cargo.lock from .gitignore for reproducible CI builds
- Track Cargo.lock for --locked builds

Note: Migration to bincode 2.x requires updating all serialization
code to use the new Encode/Decode derive macros.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Lenvanderhof
Copy link
Contributor Author

Closing to fix author info

@Lenvanderhof Lenvanderhof deleted the fix/bincode-api-compatibility branch January 18, 2026 07:34
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.

1 participant