rust-2024-migration

Migrate Rust codebases to Rust 2024 edition features with code samples.

2|1|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/EmilLindfors/claude-marketplace --skill rust-2024-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-2024-migration
Source: https://github.com/EmilLindfors/claude-marketplace/tree/main/plugins/rust-modern-patterns/skills/rust-2024-migration
Command: npx skills add https://github.com/EmilLindfors/claude-marketplace --skill rust-2024-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides on adopting Rust 2024 features like let chains, async closures, and improved match ergonomics.

Core Features & Use Cases

  • Let chains adoption
  • Async closures
  • Gen blocks and match ergonomics
  • Edition and rust-version upgrades

Quick Start

Update Cargo.toml to edition = "2024" and enable Rust 1.88+; refactor as recommended.

Frequently Asked Questions about rust-2024-migration

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

FAQPage Schema
How do I migrate Rust code to the 2024 edition?

Migrate to Rust 2024 by updating Cargo.toml to edition = "2024" and ensuring Rust 1.88+. The Skill identifies migration opportunities across nested control flow, let chains, async closures, and gen blocks, then delivers refactored code samples and an upgrade checklist.

What are let chains and when should I use them?

Let chains simplify nested control flow by combining multiple conditions in a single pattern. The Skill detects where let chains apply in 2021-edition code and proposes concrete transformations to reduce nesting and improve readability.

Does Rust 2024 support native async closures?

Yes. Rust 2024 introduces native async closures, eliminating the need for workarounds. The Skill recognizes async closure patterns and transforms them to use the new 2024 syntax for cleaner, more idiomatic code.

Can I upgrade an existing Rust 2021 project to 2024?

Yes. The Skill handles codebases at edition 2021 or earlier, identifying which 2024 features apply to your codebase and providing step-by-step refactoring guidance plus an edition-upgrade checklist to minimize risk.

What's the difference between gen blocks and match ergonomics in Rust 2024?

Gen blocks enable generator functions; match ergonomics improve pattern matching syntax. The Skill recognizes both patterns in existing code and proposes 2024 transformations for each, with templates and examples.

What do I need before running a Rust edition migration?

A working Rust project at edition 2021 or earlier with a Cargo.toml file. The Skill scans for migration opportunities and outputs refactored code, templates, and a checklist; you apply changes and test.