Skip to content

fix(rust): valid crates.io category for ahp-ws + dry-run all crates before publish#252

Merged
connor4312 merged 1 commit into
mainfrom
fix/rust-publish-category-validation
Jun 19, 2026
Merged

fix(rust): valid crates.io category for ahp-ws + dry-run all crates before publish#252
connor4312 merged 1 commit into
mainfrom
fix/rust-publish-category-validation

Conversation

@connor4312

Copy link
Copy Markdown
Member

Problem

The AHP 0.4.0 Rust publish failed on the last crate:

error: failed to publish ahp-ws v0.4.0 to registry at https://crates.io
Caused by: status 400 Bad Request: The following category slugs are not
currently supported on crates.io: network-programming::websocket

ahp-types and ahp had already published by then, leaving a partial release. crates.io validates category slugs server-side at publish time, and cargo publish --dry-run never contacts the registry, so nothing caught this earlier.

Changes

  • clients/rust/crates/ahp-ws/Cargo.toml — replace the unsupported network-programming::websocket slug with the supported network-programming slug.
  • .github/workflows/publish-rust.yml — add a Dry-run publish every crate step to the validate job (which gates publish), 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.0 is being published locally as a one-time recovery (ahp-types / ahp 0.4.0 are already live and immutable). This PR prevents a recurrence on future releases.

…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]>
@connor4312 connor4312 enabled auto-merge June 19, 2026 18:39
@connor4312 connor4312 merged commit 40c8475 into main Jun 19, 2026
8 checks passed
@connor4312 connor4312 deleted the fix/rust-publish-category-validation branch June 19, 2026 18:58
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.

2 participants