rust-pro
Rust Development Expert
Build high-performance, memory-safe Rust applications with expert guidance on async patterns, advanced type system features, and production-ready systems programming.
์คํฌ ZIP ๋ค์ด๋ก๋
Claude์์ ์ ๋ก๋
์ค์ โ ๊ธฐ๋ฅ โ ์คํฌ โ ์คํฌ ์ ๋ก๋๋ก ์ด๋
ํ ๊ธ์ ์ผ๊ณ ์ฌ์ฉ ์์
ํ ์คํธํด ๋ณด๊ธฐ
"rust-pro" ์ฌ์ฉ ์ค์ ๋๋ค. Explain async/await in Rust and show how to use Tokio for a concurrent web server
์์ ๊ฒฐ๊ณผ:
Async/await in Rust provides a way to write asynchronous code that looks synchronous. With Tokio, you can build concurrent servers efficiently. Here's a basic example of an async HTTP server...
"rust-pro" ์ฌ์ฉ ์ค์ ๋๋ค. Help me understand ownership model for the this code that manages a database connection pool
์์ ๊ฒฐ๊ณผ:
For a database connection pool, you typically want multiple threads to access connections. This requires Arc<Mutex<ConnectionPool>> or a specialized pool like r2d2. Let me explain the ownership semantics...
๋ณด์ ๊ฐ์ฌ
์์ Prompt-only skill with no executable code. Static analysis scanned 0 files and detected 0 potential security issues. This is a Rust developer persona definition that provides guidance on Rust programming without any network, filesystem, or system access capabilities. Risk score: 0/100.
ํ์ง ์ ์
๋ง๋ค ์ ์๋ ๊ฒ
Building Async Web Services
Design and implement high-performance web APIs using axum, Tokio, and async patterns with proper error handling and backpressure
Performance Optimization
Analyze and optimize Rust code for memory usage, cache efficiency, and zero-cost abstractions while maintaining safety
FFI and Unsafe Code
Create safe wrappers around C libraries with proper safety invariants and documentation for unsafe code blocks
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Explain how [Rust concept] works in Rust 1.75+ and provide a code example.
I have this Rust code that fails with a borrow checker error. Analyze the ownership model and suggest a fix: [code]
Design an async web service in Rust that handles [use case] with Tokio. Include error handling, proper shutdown, and testing approach.
Profile and optimize this Rust code for [metric]. Suggest zero-cost abstractions, memory layout improvements, or algorithm changes: [code]
๋ชจ๋ฒ ์ฌ๋ก
- Prefer Result types over exceptions for error handling
- Use Arc and Rc only when shared ownership is truly needed
- Document all unsafe code blocks with explicit safety invariants
ํผํ๊ธฐ
- Using unwrap() in production code without proper error handling
- Ignoring the borrow checker by using unsafe instead of finding a safe solution
- Blocking async code with synchronous I/O operations