What problem does it solve?
Helps engineers design and implement Rust applications that require strong memory safety, predictable ownership and borrowing, high concurrency, and zero-cost abstractions to avoid runtime errors and undefined behavior.
Core Features & Use Cases
- Ownership & Lifetimes: Analyze ownership flows, design appropriate lifetime relationships, and recommend borrowing patterns.
- Async & Concurrency: Provide idiomatic async/await designs with tokio, task spawning, cancellation, and channel-based communication.
- Type & Trait Design: Define trait hierarchies, generics, associated types, and conversion patterns for extensible APIs.
- Error Handling & Safety: Recommend Result/Option patterns, custom error types, documented unsafe blocks, and conformance to clippy and rustfmt.
- Testing & Performance: Suggest unit/integration tests, property tests, benchmarks with criterion, and tools like MIRI for unsafe checks.
Quick Start
Use the rust-engineer skill to design a tokio-based async service with safe ownership, explicit error handling, and tests.