Skip to content

Conversation

@cpubot
Copy link
Contributor

@cpubot cpubot commented Feb 5, 2026

@steviez
Copy link
Contributor

steviez commented Feb 5, 2026

Is #124 a breaking change or will pre-existing bounds continue to compile ? Thinking about semver and wanting to make sure this should be 0.3.2 and not 0.4.0

@cpubot
Copy link
Contributor Author

cpubot commented Feb 5, 2026

Is #124 a breaking change or will pre-existing bounds continue to compile ? Thinking about semver and wanting to make sure this should be 0.3.2 and not 0.4.0

Pre-existing bounds should continue to compile. For existing SchemaRead/SchemaWrite bounds, there may be conflicts, but I doubt anyone on 0.3.x is adding those bounds explicitly given the complexity of actually getting the compiler to accept them with the 0.3.x config addition -- in fact I don't think it's actually possible to get it to compile. That being said, if we wanted to be very strict about this, a 0.4.0 release is justifiable.

Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

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

Refreshed myself here, a few notes:

Looking at who is currently using wincode, it is:

That being said, if we wanted to be very strict about this, a 0.4.0 release is justifiable.

Given that this crate already has some adoption outside of Anza and may see more, I think we should do "the right thing" and jump to 0.4.0. We got a lot of flack (rightfully so) for our abuse of semver in the SDK, so we should probably continue to be on our best behavior moving forward 😅

@cpubot cpubot force-pushed the wincode-derive-0.3.2 branch from b56cf2a to fa56742 Compare February 5, 2026 23:38
@cpubot
Copy link
Contributor Author

cpubot commented Feb 5, 2026

Updated to 0.4.0.

I also had to remove the version key in wincode's wincode-derive Cargo.toml entry in accordance with https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#multiple-locations.

If both path and version are specified, the versions between the two must be compatible. Bumping to 0.4.0 makes the version and path dependencies incompatible. I will re-add the explicit version key once this is merged and [email protected] is released.

steviez
steviez previously approved these changes Feb 5, 2026
Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

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

Can you please update the PR title as well to reflect the update ? Otherwise, LGTM

@cpubot cpubot changed the title Bump wincode-derive to 0.3.2 Bump wincode-derive to 0.4.0 Feb 5, 2026
kskalski
kskalski previously approved these changes Feb 6, 2026
@cpubot
Copy link
Contributor Author

cpubot commented Feb 6, 2026

Going to hold off on merging this until #152 is merged so we can avoid minor version bump churn.

yihau
yihau previously approved these changes Feb 6, 2026
Copy link
Member

@yihau yihau left a comment

Choose a reason for hiding this comment

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

nit: maybe could consider this: #158 so that we don't need to remove the windoe-derive version here https://github.com/anza-xyz/wincode/pull/157/changes#diff-4d133aae7d845b7fddba013210f841831b8b322b63624ba26a0e805b8eca2737L34 (also we will need to add it back later)

for breaking api version bump, in current situation, we will need to

A:

  1. have a PR to bump wincode-derive to next version and remove version field in wincode
  2. release wincode-derive
  3. have a PR to add version back to wincode, and here, I guess we must use the latest version

if we do patch, it will look like:

B:

  1. have a PR to bump wincode-derive to next version. no changes to wincode are required
  2. release wincode-derive
  3. have a PR to adapt wincode to use the new version

@cpubot cpubot dismissed stale reviews from yihau, kskalski, and steviez via 6039226 February 6, 2026 18:52
@cpubot cpubot force-pushed the wincode-derive-0.3.2 branch from fa56742 to 6039226 Compare February 6, 2026 18:52
@cpubot
Copy link
Contributor Author

cpubot commented Feb 6, 2026

Confirmed @yihau's patch works!

@cpubot cpubot requested review from kskalski, steviez and yihau February 6, 2026 18:53
@cpubot
Copy link
Contributor Author

cpubot commented Feb 6, 2026

Hmm, it looks like CI might be using the version rather than the patch.

@cpubot cpubot force-pushed the wincode-derive-0.3.2 branch from 6039226 to 4d59dc4 Compare February 6, 2026 19:04
@cpubot
Copy link
Contributor Author

cpubot commented Feb 6, 2026

Okay, restoring what we had previously, but pinning the version in wincode to 0.4.0. This should still allow us to maintain the adjacent path dependency and deploy [email protected].

@cpubot cpubot merged commit 5dada29 into master Feb 7, 2026
3 checks passed
@cpubot cpubot deleted the wincode-derive-0.3.2 branch February 7, 2026 00:58
@cpubot cpubot mentioned this pull request Feb 7, 2026
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.

4 participants