What problem does it solve?
This skill helps you write, review, and debug idiomatic Rust effectively, avoiding common ownership, borrowing, and error-handling pitfalls while producing reliable, high-performance code.
Core Features & Use Cases
- Ownership & Lifetimes Guidance: Design borrowing patterns and lifetime relationships to prevent dangling references and unnecessary cloning.
- Trait-Based API Design: Create clean trait hierarchies with generics and associated types for extensible Rust libraries and services.
- Async with Tokio: Implement correct async/await concurrency patterns, including parallel execution and graceful shutdown.
- Error Handling Mastery: Use Result/Option with robust custom error types via thiserror, and propagate failures predictably.
Use case example: You’re building a Rust service that concurrently fetches remote data, transforms it, and returns structured domain errors—this skill guides the implementation from lifetimes through Tokio orchestration to testable, clippy-clean code.
Quick Start
Use rust-engineer to implement a Tokio-based async function that fetches two URLs concurrently, transforms the results, and returns a typed thiserror-based AppError.