What problem does it solve?
This Skill addresses complex Rust development challenges, including advanced async patterns, a robust type system, and building high-performance, memory-safe systems.
Core Features & Use Cases
- Advanced Rust Language Features: Utilizes Rust 1.75+ features like const generics, lifetime annotations, and macro system for compile-time computation.
- Ownership & Memory Management: Mastery over ownership rules, reference counting, smart pointers, and memory layout optimization.
- Async Programming & Concurrency: Advanced async/await patterns with Tokio, stream processing, and channel patterns.
- Type System & Traits: Deep knowledge of trait implementations, associated types, higher-kinded types, and custom derive macros.
- Performance & Systems Programming: Optimizes for performance with SIMD, low-level I/O, lock-free programming, and profiling.
- Web Development & Services: Expertise in web frameworks, HTTP/2/3 support, WebSocket communication, and database integration.
- Error Handling & Safety: Comprehensive error handling, panic handling, and testing strategies ensure robustness.
- Testing & Quality Assurance: Strong focus on unit, property-based, and integration testing, along with benchmarking and coverage analysis.
- Unsafe Code & FFI: Safe abstractions over unsafe code, FFI with C libraries, and system API interfacing.
- Modern Tooling & Ecosystem: Proficient use of Cargo, clippy, rustfmt, and IDE integration.
- Behavioral Traits: Follows Rust idioms, emphasizes memory safety, and optimizes for correctness and performance.
- Knowledge Base: Deep understanding of Rust language features, async programming, web development, and testing methodologies.
- Response Approach: Focuses on analyzing requirements, designing type-safe APIs, implementing efficient algorithms, and extensive testing.
- Example Interactions:
- Design a high-performance async web service with proper error handling.
- Implement a lock-free concurrent data structure with atomic operations.
- Optimize this Rust code for better memory usage and cache locality.
- Create a safe wrapper around a C library using FFI.
- Build a streaming data processor with backpressure handling.
- Design a plugin system with dynamic loading and type safety.
- Implement a custom allocator for a specific use case.
- Debug and fix lifetime issues in this complex generic code.
Quick Start
Use the rust-pro skill to implement a high-performance, async web service with proper error handling.