Skip to content

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 31 Oct 18:39
· 3 commits to main since this release
v0.4.1
4cb44a1

Highlights

  • Added auto, filtered, native, and legacy resolution backends. The filtered backend applies the configured cooldown policy to supported sparse registry indexes before Cargo resolves dependencies, then validates the resulting lockfile and checksums.
  • Added conservative native Cargo delegation and a native prefilter for eligible Cargo 1.100+ updates. Unsupported configurations continue through the legacy guard in auto mode.
  • Replaced workspace copying with a temporary lockfile. This avoids traversing unrelated directories such as node_modules, while preserving the original workspace and path dependencies.
  • Improved lockfile coordination: concurrent cargo-cooldown processes wait without the former fixed timeout, external changes are checked before publication, and the resulting lockfile is published atomically.
  • Improved compatibility with Cargo proxy settings, custom CA bundles, rustup toolchains, workspace paths, and Windows lockfile readers. Upstream retries stop after workers observe shutdown; an HTTP request already in progress can still take up to its timeout.
  • Updated locked TLS, QUIC, certificate, and Tokio dependencies and expanded regression coverage across platforms and toolchains.

Compatibility

  • Rust and Cargo 1.97 or newer are required.
  • User-configured Cargo aliases and custom Cargo lockfile paths are rejected with a diagnostic. Invoke the underlying Cargo command directly and use the default lockfile path.
  • If an interrupted run leaves Cargo.lock.cooldown-hold, remove it only after confirming that no other cargo-cooldown process is using it.

Fixes and thanks

  • Fixed a macOS package collision caused by /var and /private/var path aliases (#28). Thanks to @ma5aki for the detailed report and reproduction.
  • Fixed failures caused by files disappearing during workspace copies, including under node_modules (#29). Thanks to @YevheniiKotyrlo for the report and reproduction.
  • Fixed the timeout when a second process waits for a live lock holder (#30). Thanks to @YevheniiKotyrlo for the report and reproduction.

Install

cargo install --locked cargo-cooldown --version 0.4.1

Prebuilt archives for Linux, macOS, and Windows are attached, together with SHA256SUMS and GitHub Artifact Attestations. The v0.4.1 tag is GPG-signed.

Implemented in #27 by @dertin.

Full changelog: v0.3.5...v0.4.1