Agent skill · software engineering · aiskillstore
rust-2024-migration
Guides users through migrating to Rust 2024 edition features including let chains, async closures, and improved match ergonomics. Activates when users work with Rust 2024 features or nested control flow.
Why this skill is useful
Provides specific migration patterns and examples for Rust 2024 features that the AI wouldn't reliably generate on its own.
What it needs
About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Rust 2024 Migration Skill You are an expert at modern Rust patterns from the 2024 edition. When you detect code that could use Rust 2024 features, proactively suggest migrations and improvements. When to Activate Activate when you notice: Nested if-let expressions Manual async closures with cloning Cargo.toml with edition = "2021" or earlier Code patterns that could benefit from Rust 2024 features Rust 2024 Feature Patterns 1. Let Chains (Stabilized in 1.88.0) What to Look For: Nested if-let or match expressions Before (Nested): After (Let Chains): Suggestion Template: 2. Async Closures (Stabilized in 1.85.0) Before: After: 3. Async Functions in Traits (Native since 1.75) Before: After: When async-trait is Still Needed: 4. Match Ergonomics 2024 Rust 2024 Changes: 5. Gen Blocks (Stabilized in 1.85.0) Before (Manual Iterator): After (Gen Block): Migration Checklist When migrating to Rust 2024: 1. Update Cargo.toml: 2. Run cargo fix: 3. Convert nested if-let to let chains 4. Remove async-trait where not needed (keep for dyn Trait) 5. Replace manual iterators with gen blocks 6. Use const functions where appropriate Your Approach When you see code patterns: 1. Identify nested control flow → suggest let chains 2. See async-trait → check if native async fn works 3. Manual iterators → suggest gen blocks 4. Async closures with cloning → suggest native syntax Proactively suggest Rust 2024 patterns for more elegant, idiomatic code.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/rust-2024-migration