fix(rust): valid crates.io category for ahp-ws + dry-run all crates before publish#252
Merged
Merged
Conversation
…s before publish The 'network-programming::websocket' category slug is rejected by crates.io with HTTP 400 at publish time, which broke the 0.4.0 release after ahp-types and ahp had already published. Use the supported 'network-programming' slug instead. Add a 'Dry-run publish every crate' step to the publish-rust validate job so packaging/build problems in any crate are caught before the publish job ships any of them. Co-authored-by: Copilot <[email protected]>
pwang347
approved these changes
Jun 19, 2026
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
The AHP 0.4.0 Rust publish failed on the last crate:
ahp-typesandahphad already published by then, leaving a partial release. crates.io validates category slugs server-side at publish time, andcargo publish --dry-runnever contacts the registry, so nothing caught this earlier.Changes
clients/rust/crates/ahp-ws/Cargo.toml— replace the unsupportednetwork-programming::websocketslug with the supportednetwork-programmingslug..github/workflows/publish-rust.yml— add aDry-run publish every cratestep to thevalidatejob (which gatespublish), so a packaging/build failure in any crate is caught before the publish job ships any of them. Path deps resolve within the workspace, so dependents dry-run cleanly even before their dependencies exist on crates.io.Release note
ahp-ws 0.4.0is being published locally as a one-time recovery (ahp-types/ahp0.4.0 are already live and immutable). This PR prevents a recurrence on future releases.