学习计划:Rust + AI工程 + 安全 — 资源总表
整理时间:2026-07-06 计划周期:30天,每天2h+ 💡 所有资源均为免费公开资源
一、Rust 语言入门 #
必读教材 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 📖 Rust Book 官方书 | https://doc.rust-lang.org/book/ | 重点:Ch4所有权/Ch9错误处理/Ch10泛型trait/Ch16并发/Ch19进阶 |
| 📖 Rust Book 中文版 | https://kaisery.github.io/trpl-zh-cn/ | 英文吃力时对照看 |
| 📖 Rust by Example | https://doc.rust-lang.org/rust-by-example/ | 查语法小例子用,不用从头读 |
| 📖 Comprehensive Rust by Google | https://google.github.io/comprehensive-rust/ | 适合有C++背景,有Android/Bare-metal章节 |
交互式练习 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🎯 Rustlings | https://github.com/rust-lang/rustlings | 边练边学,强烈推荐 — 本地做完100+个小练习 |
| 🎯 Rustlings安装文档 | https://rustlings.rust-lang.org/setup/ | 官方安装指南 |
| 🎯 Rust Gym | https://github.com/warycat/rustgym | LeetCode风格Rust题 |
视频课程 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🎬 Let’s Get Rusty YouTube | https://www.youtube.com/@letsgetrusty | 高质量Rust视频教程 |
🌟 我的建议 #
不要从头到尾看书。 有C++/Python基础的话:
- 先装Rust环境(rustup)
- 跑
rustlings做前40个练习(ownership/move_semantics模块)- 边做边翻Rust Book对应章节
- 第3天直接开始写 Secret Scanner v0.1,遇到不会的语法再查
二、Rust 框架与生产实践 #
Web 后端 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🚀 Axum | https://github.com/tokio-rs/axum | 当前最推荐的Rust Web框架 |
| 📖 Axum 官方示例 | https://github.com/tokio-rs/axum/tree/main/examples | 每个示例独立可跑 |
| ⚡ Tokio 异步运行时 | https://tokio.rs/ | Rust异步基础 |
数据库 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🗄️ SQLx | https://github.com/launchbadge/sqlx | 编译期检查SQL,Rust最爱 |
| 🗄️ SeaORM | https://www.sea-ql.org/SeaORM/ | ORM,适合有Django/SQLAlchemy经验的人 |
CLI 工具链 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🔧 clap | https://github.com/clap-rs/clap | Rust CLI参数解析标准库 |
| 🔧 anyhow | https://github.com/dtolnay/anyhow | 简单的错误处理 |
| 🔧 thiserror | https://github.com/dtolnay/thiserror | 自定义错误类型 |
| 🔧 tracing | https://github.com/tokio-rs/tracing | 结构化日志(比log库更强) |
| 🩺 cargo-audit | https://github.com/RustSec/rustsec/tree/main/cargo-audit | 依赖漏洞检查 |
| 🩺 cargo-deny | https://github.com/EmbarkStudios/cargo-deny | 依赖许可/安全审查 |
| 🩺 cargo-fuzz | https://github.com/rust-fuzz/cargo-fuzz | 模糊测试 |
🌟 我的建议 #
第2周直接走 Axum + SQLx + tracing 这套组合拳。 不要分散学多个框架,Rust Web生态的选型已经稳定了:
- Web框架 → Axum(不要学Actix-web了,Axum的提取器+中间件设计更现代)
- 异步 → Tokio(事实标准)
- 数据库 → SQLx(编译期检查SQL太香了)
- 日志 → tracing(比log库更适合微服务)
三、AI 应用工程 #
LLM 应用基础 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 📖 OpenAI Cookbook | https://github.com/openai/openai-cookbook | RAG/function calling/embeddings |
| 📖 LangChain Python 文档 | https://python.langchain.com/docs/introduction/ | LCEL/RAG/Agents/Tools/Memory |
| 📖 LlamaIndex 文档 | https://docs.llamaindex.ai/ | RAG 首选框架,结构比LangChain清晰 |
| 🎓 Hugging Face NLP Course | https://huggingface.co/learn/nlp-course/ | Transformer/HF生态入门 |
安全数据源 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🗄️ Qdrant | https://qdrant.tech/documentation/ | Rust写的向量库,性能好,适合生产 |
| 🗄️ Chroma | https://docs.trychroma.com/ | Python原生,轻量适合学习 |
向量模型 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🧠 bge-small-en-v1.5 | https://huggingface.co/BAAI/bge-small-en-v1.5 | 轻量嵌入模型 |
| 🧠 bge-reranker-base | https://huggingface.co/BAAI/bge-reranker-base | 重排序模型 |
RAG 评测 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 📊 RAGAS | https://github.com/explodinggradients/ragas | RAG评估框架 |
🌟 我的建议 #
AI 应用部分不要从零开始,直接用现成框架上手:
- 用 LlamaIndex 搭第一个 RAG 原型最快(30分钟能跑通)
- Qdrant > Chroma,因为Qdrant是Rust写的,和你学的Rust呼应
- LangChain建议从第3版文档开始看,之前的版本API变化太大
- RAGAS一定要用,没评测=不知道自己做得好不好
四、ReAct Agent #
| 资源 | 链接 | 说明 |
|---|---|---|
| 📄 ReAct 论文 | https://arxiv.org/abs/2210.03629 | 提出ReAct的原始论文 |
| 🎯 LangGraph | https://langchain-ai.github.io/langgraph/ | Agent框架,比LangChain Agent更灵活 |
| 🎯 AutoGen | https://github.com/microsoft/autogen | 微软的多Agent框架 |
🌟 我的建议 #
Agent 是这个学习计划里最能体现工程能力的部分。 推荐路径:ReAct论文读摘要 → LangGraph搭原型 → 工具链完善 → 安全场景落地 可以先做 安全运维 Agent(查CVE、查DNS、查Whois、查IP信誉), 这是真实企业需求,面试/作品集都加分。
五、大模型工程底层 #
ZeRO 优化 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 📄 ZeRO 论文 | https://arxiv.org/abs/1910.02054 | DeepSpeed ZeRO原始论文 |
| 🎯 DeepSpeed ZeRO 教程 | https://www.deepspeed.ai/tutorials/zero/ | 官方实践教程 |
SmoothQuant 量化 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 📄 SmoothQuant 论文 | https://arxiv.org/abs/2211.10438 | W8A8量化方法 |
| 🎯 SmoothQuant 项目 | https://github.com/mit-han-lab/smoothquant | 官方代码 |
FP8 训练 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 📄 FP8 论文 | https://arxiv.org/abs/2209.05433 | FP8格式与训练 |
| 🎯 NVIDIA Transformer Engine | https://github.com/NVIDIA/TransformerEngine | FP8训练的实际实现 |
分布式训练 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🎯 Megatron-LM | https://github.com/NVIDIA/Megatron-LM | TP/PP/DP工业实现 |
| 🎯 DeepSpeed Pipeline | https://www.deepspeed.ai/tutorials/pipeline/ | 流水线并行教程 |
🌟 我的建议 #
这部分是理解为主,不需要全部自己实现。 这是大厂AI工程团队的活,你作为个人开发者:
- 看懂概念(ZeRO-1/2/3区别、TP/PP/DP拓扑)
- 跑通官方demo
- 能解释为什么需要这些东西(显存不够、通信瓶颈) 一个月内能跑通 SmoothQuant demo + DeepSpeed ZeRO 小例子就算超额完成。
六、深度学习 / 机器学习 / 数学 #
推荐课程 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🎓 Dive into Deep Learning (d2l.ai) | https://d2l.ai/ | 最推荐的动手深度学习教材,有PyTorch版 |
| 🎓 fast.ai Practical DL | https://course.fast.ai/ | 适合建立工程直觉 |
| 🎓 Stanford CS229 | https://cs229.stanford.edu/ | 机器学习数学基础 |
| 🎓 Hugging Face NLP Course | https://huggingface.co/learn/nlp-course/ | Transformer/HF生态入门 |
安全数据源 #
| 资源 | 链接 | 说明 |
|---|---|---|
| 🛡️ OWASP Top 10 | https://owasp.org/www-project-top-ten/ | Web安全标准 |
| 🛡️ OWASP Cheat Sheet | https://cheatsheetseries.owasp.org/ | 安全实践速查 |
| 🛡️ NIST AI RMF | https://www.nist.gov/itl/ai-risk-management-framework | AI风险管理框架 |
| 🛡️ MITRE ATLAS | https://atlas.mitre.org/ | AI攻击矩阵 |
| 🛡️ OWASP LLM Top 10 | https://owasp.org/www-project-top-10-for-large-language-model-applications/ | LLM应用安全 |
| 🛡️ Garak LLM Scanner | https://github.com/NVIDIA/garak | LLM安全性测试 |
| 🛡️ PyRIT | https://github.com/Azure/PyRIT | 微软AI红队工具 |
七、作品集推荐项目优先级 #
优先级1 🔴 Rust Secret Scanner
├ Rust工程实践(遍历/正则/CLI)
└ 安全开发(敏感信息检测)
优先级2 🟡 OWASP RAG 安全知识库
├ LLM应用工程(RAG/混合检索/rerank)
└ 安全知识(OWASP/MITRE)
优先级3 🟢 ReAct Security Agent
├ Agent + 工具调用
└ 安全自动化(CVE查询/IP溯源/日志分析)
优先级4 🔵 ZeRO / SmoothQuant / FP8 实验
理解为主,跑通demo即可
八、用我(AI助手)参与学习的方式 #
| 场景 | 你可以怎么说 |
|---|---|
| 🔧 环境搭建 | “帮我装Rust + Clone Rustlings” |
| 🐛 代码调试 | “这个Rust编译错误什么意思” |
| 📝 写博客 | “把我学Rust第一周的内容写成博客” |
| 🛠️ 项目辅助 | “帮我搭Secret Scanner的框架代码” |
| 💡 概念讲解 | “用白话讲一下ZeRO-3怎么工作的” |
| 📚 资料整理 | “帮我整理这周的笔记本发到网站上” |