Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.5 #394

Merged
merged 1 commit into from
Feb 25, 2023
Merged

Release v0.5 #394

merged 1 commit into from
Feb 25, 2023

Conversation

Thomasdezeeuw
Copy link
Collaborator

@Darksonn
Copy link
Collaborator

Btw, you might want to add semver checking to CI like we recently did for Tokio.

@Thomasdezeeuw
Copy link
Collaborator Author

Btw, you might want to add semver checking to CI like we recently did for Tokio.

You mean https://github.com/tokio-rs/tokio/blob/ca9f7ee9f4750d6bb8a073ab4df1b7e4555857ad/.github/workflows/ci.yml#L233-L248 and https://github.com/obi1kenobi/cargo-semver-checks?

@Darksonn
Copy link
Collaborator

Yes.

@Thomasdezeeuw
Copy link
Collaborator Author

Created #396 for it.

@Thomasdezeeuw Thomasdezeeuw merged commit 3aa8d82 into rust-lang:master Feb 25, 2023
@Thomasdezeeuw Thomasdezeeuw deleted the release-v0.5 branch February 25, 2023 20:29
@Thomasdezeeuw
Copy link
Collaborator Author

Thanks for the reviews @Darksonn

@cgwalters
Copy link

FWIW, this semver bump is causing a ripple effect bytecodealliance/cap-std@963eebf#r121651362

Not saying it was wrong to do...but I just want to ensure the cost/benefit is more visible.

@Thomasdezeeuw
Copy link
Collaborator Author

FWIW, this semver bump is causing a ripple effect bytecodealliance/cap-std@963eebf#r121651362

Not saying it was wrong to do...but I just want to ensure the cost/benefit is more visible.

I'm aware of the cost. v0.5 was required mainly to resolve #218, which showed that some of the API in v0.4 is unsound (it can use an arbitrary integer as fd without unsafe). Furthermore v0.4 is still supported, so if the unsound API is not used (incorrect) crates have plenty of time to update to v0.5.

Updating a heavily used crate in a breaking way is a pain, I'm aware, but at times it's required. v0.5 was the second breaking change in roughly the same amount of years. I try to keep a detailed changelog: https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md#050 with clearly indicated API breakage and upgrade path. In other words I try to make the update experience as painless as possible.

All that said, updating existing, working code for little (perceived) benefit is always an annoying experience, just know that I'm not doing it annoy people.

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.

None yet

3 participants