Skip to content

chore: release cargo-anvil 0.7.0 and cargo-aprz 1.1.2 - #156

Merged
Evgenii (Vaiz) merged 1 commit into
mainfrom
u/vaiz/2026/09/03/release-anvil-aprz
Sep 3, 2026
Merged

chore: release cargo-anvil 0.7.0 and cargo-aprz 1.1.2#156
Evgenii (Vaiz) merged 1 commit into
mainfrom
u/vaiz/2026/09/03/release-anvil-aprz

Conversation

@Vaiz

Copy link
Copy Markdown
Contributor

🤖 Clawpilot here! Posted automatically by Clawpilot (an AI agent), not by a human. Please verify before acting.

Prepares crates.io releases for cargo-anvil and cargo-aprz in one PR. Everything was produced by scripts/release-crate.ps1, except the three follow-ups called out under Manual additions below.

Versions

Crate From To Bump Why
cargo-anvil 0.6.0 0.7.0 minor The range since the cargo-anvil-v0.6.0 tag contains a feature (#152), so a minor bump is the semver-correct step for a 0.x crate.
cargo-aprz-lib 1.1.1 1.1.2 patch Carries #145, the only change since cargo-aprz-lib-v1.1.1.
cargo-aprz 1.1.1 1.1.2 patch See note below.

Why cargo-aprz-lib is in a PR that was asked to release cargo-aprz

crates/cargo-aprz has zero commits since its cargo-aprz-v1.1.1 tag — the binary is a thin shell over cargo-aprz-lib, and the fix worth republishing (#145, dropping the directories and humantime-serde dependencies) lives entirely in the library. Releasing the binary without the library would publish nothing new, so both move to 1.1.2 together. That also keeps the pair in lockstep, which is how they have been versioned so far.

Changelogs

Both generated sections come from the commit range since each crate's own release tag. Note that cargo-anvil-v0.6.0 and cargo-aprz-lib-v1.1.1 both point at 2937b1b, not at the commits that bumped the versions, so several anvil-touching commits that look unreleased in git log were in fact already inside the published 0.6.0 tarball and are correctly absent here.

Manual additions on top of the script

  1. .anvil.lock — regenerated with cargo run -p cargo-anvil -- anvil. The lockfile records tool_version, so bumping the crate to 0.7.0 without regenerating would have failed the regenerate-check job. cargo anvil --dry-run is now clean.
  2. crates/cargo-aprz-lib/src/reports/snapshots/…__html_report.snap — the HTML report embeds the producing crate version (Produced by cargo-aprz 1.1.2). The previous version bump, chore: Bump versions so these tools get republished from this repo #132, had to do the same.
  3. crates/cargo-aprz/CHANGELOG.md — the script emitted nothing, because no commit touched that directory. A one-line entry was added by hand so the crate does not ship a version with no release notes; without it publish-gh-release.rs falls back to the bare string Release cargo-aprz v1.1.2.

Validation

  • cargo check --workspace --all-targets --locked — passes, so Cargo.lock is consistent with the new versions
  • cargo test -p cargo-anvil — 409 + 100 tests pass
  • cargo test -p cargo-aprz-lib --lib reports::snapshot_tests — 10 pass
  • cargo run -p cargo-anvil -- anvil --dry-run — no drift
  • just anvil-spellcheck — clean

Note, not fixed here

crates/cargo-aprz-lib/CHANGELOG.md still carries a stale ## [Unreleased] heading that now sits below the new 1.1.2 section. It dates back to the crate's import in #76 and describes work that shipped in 1.1.1, so relabelling it would assert a release date this PR cannot verify. Left alone deliberately; it does not affect release-note extraction, which stops at the next ## heading.

Prepared with `scripts/release-crate.ps1`.

cargo-anvil 0.6.0 -> 0.7.0 (minor: the range since the `cargo-anvil-v0.6.0`
tag carries a feature). `.anvil.lock` is regenerated so its `tool_version`
matches the new crate version and `regenerate-check` stays green.

cargo-aprz 1.1.1 -> 1.1.2 and cargo-aprz-lib 1.1.1 -> 1.1.2 (patch). The
binary crate itself is unchanged; the fix that needs republishing lives in
cargo-aprz-lib, so both move together to keep the pair in lockstep and to
give `cargo install cargo-aprz` a release that carries it. The HTML report
snapshot embeds the crate version and is updated with it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 3, 2026 12:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are consistent, self-contained release/version updates with corresponding changelog and regenerated version-stamped artifacts.

Pull request overview

Prepares crates.io releases for cargo-anvil (0.7.0) and cargo-aprz / cargo-aprz-lib (1.1.2) by applying coordinated version bumps and regenerating the few version-stamped artifacts required for a clean publish and anvil --dry-run drift checks.

Changes:

  • Bump crate versions for cargo-anvil to 0.7.0 and cargo-aprz / cargo-aprz-lib to 1.1.2 (plus corresponding workspace/Cargo.lock updates).
  • Add release entries to the relevant changelogs for the new versions.
  • Regenerate version-stamped artifacts (.anvil.lock, the HTML report snapshot, and cargo-anvil README link refs).
File summaries
File Description
crates/cargo-aprz/CHANGELOG.md Adds a 1.1.2 release note entry referencing the cargo-aprz-lib update.
crates/cargo-aprz/Cargo.toml Bumps cargo-aprz package version to 1.1.2.
crates/cargo-aprz-lib/src/reports/snapshots/cargo_aprz_lib__reports__snapshot_tests__html_report.snap Updates the embedded “Produced by cargo-aprz …” version string to 1.1.2.
crates/cargo-aprz-lib/CHANGELOG.md Adds a 1.1.2 release note entry for dependency removals.
crates/cargo-aprz-lib/Cargo.toml Bumps cargo-aprz-lib package version to 1.1.2.
crates/cargo-anvil/README.md Updates docs.rs links / doc2readme metadata to reference 0.7.0.
crates/cargo-anvil/CHANGELOG.md Adds a 0.7.0 release section with linked PRs.
crates/cargo-anvil/Cargo.toml Bumps cargo-anvil package version to 0.7.0.
Cargo.toml Updates workspace dependency version for cargo-aprz-lib to 1.1.2.
Cargo.lock Updates locked versions for cargo-anvil, cargo-aprz, and cargo-aprz-lib.
.anvil.lock Updates the recorded anvil tool version to 0.7.0.
Review details
  • Files reviewed: 9/11 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Vaiz
Evgenii (Vaiz) enabled auto-merge (squash) September 3, 2026 12:14
@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.6%. Comparing base (8f008b3) to head (b62fefc).

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #156     +/-   ##
=======================================
- Coverage   97.6%   97.6%   -0.1%     
=======================================
  Files        298     296      -2     
  Lines      67348   66349    -999     
=======================================
- Hits       65761   64771    -990     
+ Misses      1587    1578      -9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Vaiz
Evgenii (Vaiz) merged commit cad5174 into main Sep 3, 2026
73 of 74 checks passed
@Vaiz
Evgenii (Vaiz) deleted the u/vaiz/2026/09/03/release-anvil-aprz branch September 3, 2026 14:02
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.

5 participants