rig-migrate

Detect Rig version changes and migrate Rust codebases between versions.

8.2k|927|Updated Jun 5, 2024
One-click install
npx skills add https://github.com/0xPlaygrounds/rig --skill rig-migrate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rig-migrate
Source: https://github.com/0xPlaygrounds/rig/tree/main/.claude/skills/rig-migrate
Command: npx skills add https://github.com/0xPlaygrounds/rig --skill rig-migrate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of migrating Rig code between different versions, helping developers resolve breaking changes and update deprecated APIs efficiently.

Core Features & Use Cases

  • Version Detection: Automatically detects the current Rig version from Cargo.toml.
  • Deprecation Auditing: Identifies and flags common migration patterns like Send/Sync to WasmCompat changes and String error types to enums.
  • Migration Planning & Execution: Assists in planning and applying necessary code modifications.
  • Use Case: When a new major version of rig-core is released, use this Skill to automatically audit your project for breaking changes and apply common fixes, ensuring a smoother upgrade process.

Quick Start

Use the rig-migrate skill to upgrade the project to version 0.6.

Frequently Asked Questions about rig-migrate

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

FAQPage Schema
How do I migrate Rust codebases utilizing the Rig framework between versions?

To migrate Rust codebases utilizing the Rig framework between versions, this Skill detects the current version from Cargo.toml and identifies common breaking changes like Send/Sync to WasmCompat and String error types to enums. It then facilitates systematic code updates and validation through automated checks and migration patterns.

What breaking changes are flagged when upgrading rig-core?

When upgrading rig-core, the Skill audits for common breaking changes such as Send/Sync to WasmCompat conversions and String error types to enums. It identifies these deprecated API patterns to help plan and apply necessary code modifications for a smoother upgrade process.

How does the Rig version detection process work?

The Rig version detection process works by automatically reading and parsing the Cargo.toml file in your Rust project. This identifies the current rig-core version, which is then used to audit the codebase for applicable breaking changes and deprecated APIs to plan the migration.

Can I automate resolving API deprecation issues when upgrading Rust Rig applications?

Yes, you can automate resolving API deprecation issues when upgrading Rust Rig applications. The Skill identifies deprecated APIs, flags common migration patterns, and assists in applying necessary code modifications through systematic updates and automated validation checks.

Do I need to manually update Cargo.toml before migrating my Rig code?

You do not need to manually update Cargo.toml before migrating your Rig code. The Skill automatically detects the current Rig version from Cargo.toml to audit the project for breaking changes and apply common fixes, ensuring a smoother upgrade process.

Why does my Rust Rig code fail to compile after a framework upgrade?

Your Rust Rig code may fail to compile after a framework upgrade due to breaking changes such as Send/Sync to WasmCompat conversions or String error types changing to enums. The Skill identifies these issues and facilitates applying systematic code updates to resolve them.