feat: workspace versioning + cargo-release config + CI version guard (s0.15) - #55
Merged
Conversation
…(s0.15) - Add [workspace.package] with version = "0.1.0" and edition = "2021" - Inherit version/edition in device, attester, and protocol Cargo.toml - Create release.toml for cargo-release (tag format, commit message, no publish) - Add version guard step to all 3 build jobs in release.yml — fails if Cargo.toml version doesn't match the git tag Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
[workspace.package]withversion = "0.1.0"in rootCargo.toml; all 3 crates inherit viaversion.workspace = truerelease.toml— tag formatv{{version}}, no crates.io publish, runs tests before releasingCargo.tomlversion matches the git tag; fails fast with clear message if someone usesgit taginstead ofcargo releaseRelease workflow (post-merge)
Test plan
cargo metadata --no-depsshows all 3 crates at0.1.0just cipassesgit tagwithout version bump → CI fails at version guardcargo release patch→ CI builds with correct version🤖 Generated with Claude Code