Skip to content

chore: give every workspace crate one version - #310

Merged
YuanYuYuan merged 1 commit into
mainfrom
chore/hu-version-hygiene
Aug 21, 2026
Merged

YuanYuYuan merged 1 commit into
mainfrom
chore/hu-version-hygiene

Conversation

@YuanYuYuan

Copy link
Copy Markdown
Collaborator

Slice 1 of 4, replacing #301. Each slice is one concern; #301 stays open until all four land.

What this does

Every workspace crate inherits its version from [workspace.package] instead of carrying a literal one.

What fails without this

cargo publish --workspace reads each crate's version from its own manifest, not from the release tag. A crate carrying a literal version is one a release can leave behind: it either republishes a version crates.io already has, failing the job, or ships a number that disagrees with the tag. Four crates carried one.

Two riders, disclosed

Both are inseparable from the change and are not version hygiene.

Rider Effect Checked
sha2 added to hiroz-union unused here; the dependency belongs to the slice that adds hu plugin install no warning by default
humble = [] feature removed from hiroz-union a feature name disappears no consumer. No workflow or script passes features to -p hiroz-union; every --features humble targets hiroz or hiroz-tests

Breaking Changes

None. The published version is unchanged.

`cargo publish --workspace` reads each crate's version from its own manifest,
so four manifests carrying their own literal was four chances to publish a
release under a version the tag did not name.

Inherit from the workspace instead. The readers that parsed a crate manifest
for a version now read the workspace one.
@YuanYuYuan
YuanYuYuan force-pushed the chore/hu-version-hygiene branch from 06b7336 to c7b3218 Compare August 21, 2026 08:18
@YuanYuYuan
YuanYuYuan merged commit db5ed4f into main Aug 21, 2026
28 checks passed
@YuanYuYuan
YuanYuYuan deleted the chore/hu-version-hygiene branch August 21, 2026 08:43
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