cargo-lock-manager

Detect and fix out-of-date Cargo.lock files in Rust workspaces.

63|8|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/different-ai/openwork-enterprise --skill cargo-lock-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cargo-lock-manager
Source: https://github.com/different-ai/openwork-enterprise/tree/main/.opencode/skills/cargo-lock-manager
Command: npx skills add https://github.com/different-ai/openwork-enterprise --skill cargo-lock-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires cargo, and includes scripts (resource) components.

What problem does it solve?

Manages Cargo.lock updates to resolve --locked flag issues in CI/CD, preventing PR failures due to out-of-date locks, and surfaces clear remediation steps when locks drift.

Core Features & Use Cases

  • Automatically detect and fix Cargo.lock mismatches across workspace members during CI and local development.
  • Provide actionable guidance for common --locked failures and how to commit updated locks.
  • Use Case: In a multi-crate Rust workspace, ensure the lock file reflects all dependencies and enables reproducible builds in CI.

Quick Start

Run the provided scripts to check Cargo.lock consistency and update it when CI reports a mismatch.

Frequently Asked Questions about cargo-lock-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my Cargo.lock --locked check fail in CI?

Cargo.lock --locked checks fail in CI when the lock file is out of sync with Cargo.toml dependencies. This Skill detects lockfile mismatches across Rust workspace crates and provides remediation steps to refresh and commit the updated lock file.

How do I fix an out-of-date Cargo.lock in a Rust workspace?

To fix an out-of-date Cargo.lock in a Rust workspace, run the provided scripts to validate consistency using cargo check and refresh dependencies with cargo update. This ensures the lock file reflects all workspace crates before committing the resolved changes.

Do I need cargo installed to manage lockfile synchronization?

Yes, you need the cargo dependency installed to manage lockfile synchronization. The Skill leverages cargo commands to validate manifests and update the lock file, requiring access to Cargo.toml files within your Rust workspace environment.

What is the best way to prevent CI failures from Cargo.lock drift?

The best way to prevent CI failures from Cargo.lock drift is to automate detection and updates during pre-merge checks. This Skill guides CI/CD workflows to identify out-of-date locks and apply cargo update to maintain reproducible builds across multi-crate workspaces.

Can I use this to update Cargo.lock across multiple crates?

Yes, you can use this to update Cargo.lock across multiple crates. It is specifically designed for Rust workspace projects, ensuring the lock file accurately reflects all dependencies across workspace members during local development and CI pipelines.