Refactors Rust code to use the latest 2024 edition features like let chains, async closures, and native async traits.
This Claude Code skill empowers developers to seamlessly transition their projects to the Rust 2024 edition by identifying and refactoring legacy patterns into modern, idiomatic code. It proactively suggests syntax improvements such as flattening nested control flow with let chains, replacing the async-trait crate with native implementations, and utilizing generator blocks for cleaner iterator logic. By automating the detection of outdated Cargo.toml configurations and complex closure patterns, it ensures your codebase remains readable and takes full advantage of the latest compiler optimizations and language stabilization features.
主要功能
01Modernization of iterator logic using the new gen block syntax
02Proactive Cargo.toml edition and version upgrade recommendations
030 GitHub stars
04Automatic detection and flattening of nested if-let chains
05Migration of async-trait usage to native async functions in traits
06Refactoring manual async closures to native Rust 2024 syntax
使用场景
01Upgrading legacy Rust 2021 or 2018 projects to the 2024 edition
02Simplifying deeply nested conditional logic into readable let chains
03Reducing project dependency overhead by removing the async-trait crate