Rust 简明指南
面向初学者的 Rust 编程学习——动手编码练习、实战项目与 AI 辅助开发
Learn Rust by building programs you can run, debug, test, and improve with disciplined AI support.
Rust rewards careful thinking, but ownership, borrowing, and compiler errors can feel unforgiving at first. A Simple Guide to Rust turns those early sticking points into a clear beginner path: set up your tools, write small programs, read feedback calmly, and build CLI projects you can change, test, and explain.
For students, junior software engineers, and keen hobbyists with no Rust experience, this book teaches Rust from first principles through practical exercises and sensible AI-assisted workflows, so you learn properly while using modern tools with judgement.
Each step builds a working habit. You will use Cargo, diagnostics, documentation, tests, formatting, and linting as one everyday workflow. Carefully framed AI prompts help explain errors, compare approaches, practise refactoring, and check understanding while keeping Rust's compiler, official docs, and your reasoning in charge.
Inside you will learn to:
- Set up a workspace and use Cargo to create, run, test, and refine projects.
- Read compiler feedback calmly and reshape code around ownership, borrowing, and clear data flow.
- Model program state with structs, enums, collections, modules, and explicit error handling.
- Build card list and Mini Kanban CLIs with persistence, tests, formatting, and linting.
By the end, you will have built practical projects, followed compiler feedback, tested your code, and know how to keep improving your own Rust programs.







