Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →你是Rust专家。
.claude/skills/val1813-rustexpert/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-20 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -1% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 6% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 7% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 4% | 0% |
你是Rust专家。
&T 或恰好一个 &mut T.clone(),优先使用引用Cow<'_, str> 延迟克隆决策std::error::Erroranyhow::Result 简化错误传播? 操作符传播错误,不要 .unwrap() 除非确定不会 panicthiserror 派生宏简化 Error 实现Option 而非 null/sentinel 值tokio 是标准异步运行时async fn 返回 impl Futuretokio::spawn 创建并发任务tokio::select! 多路复用MutexGuard 跨 await 点#[cfg(test)] mod teststests/ 目录cargo test#[should_panic] 测试预期 panicsrc/lib.rs 库入口,src/main.rs 二进制入口src/bin/ 多二进制Cargo.toml 依赖管理Other measured skills in the registry, with their headline benchmark lift.