rust-learner

Rust 学习与生态追踪专家。处理新版本特性、crate 更新、最佳实践演进、RFC、每周新闻等问题。触发词:latest version, what's new, Rust 版本, 新特性, update, upgrade, rfc, 每周新闻, 学习, 教程

16 stars

Best use case

rust-learner is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Rust 学习与生态追踪专家。处理新版本特性、crate 更新、最佳实践演进、RFC、每周新闻等问题。触发词:latest version, what's new, Rust 版本, 新特性, update, upgrade, rfc, 每周新闻, 学习, 教程

Teams using rust-learner should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/rust-learner/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/testing-security/rust-learner/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/rust-learner/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How rust-learner Compares

Feature / Agentrust-learnerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Rust 学习与生态追踪专家。处理新版本特性、crate 更新、最佳实践演进、RFC、每周新闻等问题。触发词:latest version, what's new, Rust 版本, 新特性, update, upgrade, rfc, 每周新闻, 学习, 教程

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Rust 学习与生态追踪

## 核心问题

**如何跟上 Rust 的发展节奏?**

Rust 每 6 周发布一个新版本,生态系统活跃。保持更新但不盲目追新。

---

## 版本更新策略

### 稳定版更新

```bash
# 检查当前版本
rustc --version

# 更新 Rust
rustup update stable

# 查看更新内容
rustup changelog stable
```

### 何时升级

| 场景 | 建议 |
|-----|------|
| 新项目 | 用最新稳定版 |
| 生产项目 | 跟随 6 周周期更新 |
| 库项目 | 考虑 MSRV 策略 |

### MSRV (Minimum Supported Rust Version)

```toml
[package]
rust-version = "1.70"  # 声明最低支持版本

[dependencies]
# 对 MSRV 敏感的依赖要谨慎
serde = { version = "1.0", default-features = false }
```

---

## 新特性学习路径

### 2024 Edition 重要特性

| 特性 | 稳定版本 | 实用度 |
|-----|---------|-------|
| `gen blocks` | nightly | ⭐ 实验性 |
| `async drop` | nightly | ⭐ 实验性 |
| `inline const` | 1.79+ | ⭐⭐ 生产可用 |
| `never type` 改进 | 1.82+ | ⭐⭐⭐ 常用 |

### 新手到进阶路线

```
基础 → 所有权、生命周期、借用检查
    ↓
中级 → 特征对象、泛型、闭包
    ↓
并发 → async/await、线程、通道
    ↓
高级 → unsafe、FFI、性能优化
    ↓
专家 → 宏、类型系统、设计模式
```

---

## 追踪信息源

### 官方渠道

| 渠道 | 内容 | 频率 |
|-----|------|-----|
| [This Week in Rust](https://this-week-in-rust.org/) | 周报、RFC、博客 | 每周 |
| [Rust Blog](https://blog.rust-lang.org/) | 重大发布、深度文章 | 不定期 |
| [Rust RFCs](https://github.com/rust-lang/rfcs) | 设计讨论 | 持续 |
| [Release Notes](https://github.com/rust-lang/rust/blob/master/RELEASES.md) | 版本变更 | 每 6 周 |

### 社区资源

| 资源 | 内容 |
|-----|------|
| [docs.rs](https://docs.rs/) | 文档搜索 |
| [crates.io](https://crates.io/) | 包搜索 |
| [lib.rs](https://lib.rs/) | 找替代 crate |
| [Rust Analyzer](https://rust-analyzer.github.io/) | IDE 插件 |

---

## 依赖更新管理

### 常规更新

```bash
# 检查可更新依赖
cargo outdated

# 更新次要版本
cargo update

# 强制更新所有
cargo update -Z direct-minimal-versions
```

### 安全审计

```bash
# 检查已知漏洞
cargo audit

# 检查依赖许可证
cargo deny check licenses
```

---

## 我的更新策略

### 每季度一次

- [ ] 升级到最新 stable
- [ ] 运行 `cargo outdated`
- [ ] 运行 `cargo audit`
- [ ] 检查依赖的 breaking changes
- [ ] 评估新特性是否值得采用

### 每年一次

- [ ] 考虑 edition 升级
- [ ] 重构使用旧模式代码
- [ ] 评估 MSRV 策略
- [ ] 更新开发工具链

---

## 学习资源推荐

### 入门

- [The Rust Programming Language](https://doc.rust-lang.org/book/) - 官方书
- [Rust by Example](https://doc.rust-lang.org/rust-by-example/) - 示例驱动

### 进阶

- [The Rust Reference](https://doc.rust-lang.org/reference/) - 语言参考
- [Rust Nomicon](https://doc.rust-lang.org/nomicon/) - unsafe 指南
- [Effective Rust](https://www.lurklurk.org/effective-rust/) - 最佳实践

### 实战

- [Exercism Rust Track](https://exercism.org/tracks/rust) - 练习题
- [Rust by Practice](https://practice.rs/) - 实践题目

Related Skills

compute-token-stats-rust-ultra

16
from diegosouzapw/awesome-omni-skill

Ultra-fast token+cost computation for Codex + Claude SSE logs (Rust) plus Python anchor/fast comparisons; includes build+run+benchmark guide.

azure-identity-rust

16
from diegosouzapw/awesome-omni-skill

Azure Identity SDK for Rust authentication. Use for DeveloperToolsCredential, ManagedIdentityCredential, ClientSecretCredential, and token-based authentication.

azure-storage-blob-rust

16
from diegosouzapw/awesome-omni-skill

Azure Blob Storage SDK for Rust. Use for uploading, downloading, and managing blobs and containers.

azure-keyvault-secrets-rust

16
from diegosouzapw/awesome-omni-skill

Azure Key Vault Secrets SDK for Rust. Use for storing and retrieving secrets, passwords, and API keys. Triggers: "keyvault secrets rust", "SecretClient rust", "get secret rust", "set secret rust".

azure-keyvault-keys-rust

16
from diegosouzapw/awesome-omni-skill

Azure Key Vault Keys SDK for Rust. Use for creating, managing, and using cryptographic keys. Triggers: "keyvault keys rust", "KeyClient rust", "create key rust", "encrypt rust", "sign rust".

azure-keyvault-certificates-rust

16
from diegosouzapw/awesome-omni-skill

Azure Key Vault Certificates SDK for Rust. Use for creating, importing, and managing certificates.

tauri2-react-rust

16
from diegosouzapw/awesome-omni-skill

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built frontend in browser, or when the user mentions Tauri, Tauri 2, Rust backend, React frontend, desktop app architecture, invoke/commands, cross-platform, 调研网站, 验证效果, agent-browser.

systems-programming-rust-project

16
from diegosouzapw/awesome-omni-skill

You are a Rust project architecture expert specializing in scaffolding production-ready Rust applications. Generate complete project structures with cargo tooling, proper module organization, testing

rust

16
from diegosouzapw/awesome-omni-skill

Write production-quality Rust code following industry best practices and idiomatic patterns. Use for any Rust coding task including applications, libraries, refactoring, debugging, or code review — with particular expertise in cross-platform GUI development.

rust-router

16
from diegosouzapw/awesome-omni-skill

CRITICAL: Use for ALL Rust questions including errors, design, and coding. HIGHEST PRIORITY for: 比较, 对比, compare, vs, versus, 区别, difference, 最佳实践, best practice, tokio vs, async-std vs, 比较 tokio, 比较 async, Triggers on: Rust, cargo, rustc, crate, Cargo.toml, 意图分析, 问题分析, 语义分析, analyze intent, question analysis, compile error, borrow error, lifetime error, ownership error, type error, trait error, value moved, cannot borrow, does not live long enough, mismatched types, not satisfied, E0382, E0597, E0277, E0308, E0499, E0502, E0596, async, await, Send, Sync, tokio, concurrency, error handling, 编译错误, compile error, 所有权, ownership, 借用, borrow, 生命周期, lifetime, 类型错误, type error, 异步, async, 并发, concurrency, 错误处理, error handling, 问题, problem, question, 怎么用, how to use, 如何, how to, 为什么, why, 什么是, what is, 帮我写, help me write, 实现, implement, 解释, explain

rust-pro

16
from diegosouzapw/awesome-omni-skill

Master Rust 1.75+ with modern async patterns, advanced type system features, and production-ready systems programming.

rust-core

16
from diegosouzapw/awesome-omni-skill

Comprehensive Rust development expertise covering core principles, patterns, error handling, async programming, testing, and performance optimization. Use when working on Rust projects requiring guidance on: (1) Language fundamentals (ownership, lifetimes, borrowing), (2) Architectural decisions and design patterns, (3) Web development (Axum, Actix-web, Rocket), (4) AI/LLM integration, (5) CLI/TUI applications, (6) Desktop development with Tauri, (7) Async/await and concurrency, (8) Error handling strategies, (9) Testing and benchmarking, (10) Performance optimization, (11) Logging and observability, or (12) Code reviews and best practices.