version-sync

Align generator version pins with Cargo.toml dependencies in Rust projects.

1|Updated Nov 25, 2025
One-click install
npx skills add https://github.com/89jobrien/dotfiles --skill version-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: version-sync
Source: https://github.com/89jobrien/dotfiles/tree/main/dot-claude/skills/version-sync
Command: npx skills add https://github.com/89jobrien/dotfiles --skill version-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects and fixes version mismatches between Cargo.toml dependencies and code generator configuration files to ensure generated code compiles and runs.

Core Features & Use Cases

  • Detects drift between Cargo.toml and generator config files (generators.baml, build.rs, buf.gen.yaml).
  • Suggests minimal, repeatable fixes to align versions and re-run codegen.
  • Provides a quick validation path using cargo metadata and codegen tools to verify fixes.

Quick Start

Run a quick check and align versions by updating generator pins to match Cargo.toml, then run codegen and cargo check.

Frequently Asked Questions about version-sync

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

FAQPage Schema
How do I keep Rust codegen in sync with Cargo.toml dependencies?

Aligning Rust codegen with Cargo.toml dependencies involves scanning generator configuration files like generators.baml, build.rs, and buf.gen.yaml to detect version mismatches, then applying minimal fixes to update generator pins and match Cargo dependency versions.

Why does my generated Rust code fail to compile after a dependency update?

Generated Rust code fails to compile after a dependency update due to version drift between Cargo.toml dependencies and code generator configuration files. Scanning common config files like generators.baml or buf.gen.yaml reports mismatches and guides reproducible alignment fixes.

How do I fix version mismatches between buf.gen.yaml and Cargo.toml?

Fixing version mismatches between buf.gen.yaml and Cargo.toml requires scanning the generator config files to identify drift, updating generator pins to match Cargo dependencies, and running a quick validation path using cargo metadata and codegen tools to verify the fix.

Does version alignment work with BAML and protoc generator configs?

Version alignment works with BAML and protoc generator configs by scanning common configuration files like generators.baml and build.rs. It detects version mismatches between these generator pins and Cargo.toml dependencies to ensure generated code compiles correctly in Rust projects.

What is the best way to prevent dependency drift in Rust codegen pipelines?

The best way to prevent dependency drift in Rust codegen pipelines is to scan configuration files like generators.baml, build.rs, and buf.gen.yaml to detect version mismatches early, then apply minimal repeatable fixes to align generator pins with Cargo.toml dependencies.